Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/event
In directory usw-pr-cvs1:/tmp/cvs-serv28285

Modified Files:
        mouse.js dragevent.js 
Log Message:
cancelBrowserEvent changes for ns4

Index: mouse.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/event/mouse.js,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** mouse.js    2001/04/08 01:05:12     1.7
--- mouse.js    2001/04/08 17:47:03     1.8
***************
*** 26,30 ****
  DynMouseEvent.prototype.getPageX=function() {return this.pageX};
  DynMouseEvent.prototype.getPageY=function() {return this.pageY};
! DynMouseEvent.prototype.cancelBrowserEvent=function(b) {this.browserReturn=b};
  // This is THE event. 
  DynMouseEvent._e=new DynMouseEvent()
--- 26,30 ----
  DynMouseEvent.prototype.getPageX=function() {return this.pageX};
  DynMouseEvent.prototype.getPageY=function() {return this.pageY};
! DynMouseEvent.prototype.cancelBrowserEvent=function() {this.browserReturn=false};
  // This is THE event. 
  DynMouseEvent._e=new DynMouseEvent()

Index: dragevent.js
===================================================================
RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/event/dragevent.js,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** dragevent.js        2001/04/04 18:40:00     1.4
--- dragevent.js        2001/04/08 17:47:03     1.5
***************
*** 23,30 ****
  DragEvent.lyrListener=new EventListener();
  DragEvent.lyrListener.onmousedown=function(e) {
-       //if (is.ie && e.orig.srcElement.tagName=="INPUT") return;
-       //else if (is.ns6 && e.orig.target.tagName=="INPUT") return;
  
!       e.cancelBrowserEvent();
        if (DragEvent.dragevent.src) return;
  
--- 23,28 ----
  DragEvent.lyrListener=new EventListener();
  DragEvent.lyrListener.onmousedown=function(e) {
  
!       if (is.def) e.cancelBrowserEvent();
        if (DragEvent.dragevent.src) return;
  


_______________________________________________
Dynapi-CVS mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-cvs

Reply via email to