I have a question.

In events.js, setEvent method:

why exactly do we do the following instead of just using e.pageX?

if (is.ns) {
    this.pageX=e.pageX-window.pageXOffset;
    this.pageY=e.pageY-window.pageYOffset;
}

When I change the above to the following,

if (is.ns) {
    this.pageX=e.pageX;
    this.pageY=e.pageY;
}

Not only does everything appear to be working (mousemove event coords, dragging, etc.) 
correctly, but the pageX/Y now match the same coords as in IE (it didn't before).

Can anyone answer this? 

Is there a reason for it?

Thanks in advance,

--proteanman

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

Reply via email to