--- Benoit Marchant <[EMAIL PROTECTED]> wrote:
> Hi
> 
> I found some issues with pageX/Y and x/y in a page
> with a scroller in 
> NS6
> 
> The current code in mouse_dom.js does:
> 
>       me.pageX = e.clientX;
>       me.pageY = e.clientY;
> 
>       me.x = me.pageX - src.getPageX(); //offsetX;
>       me.y = me.pageY - src.getPageY(); //offsetY;
> 
> If I change that to
> 
>       me.pageX = e.pageX;
>       me.pageY = e.pageY;
> It fixes the issue.
> 
> I dynapi2, i have that code:
> 
>              evt.pageX= (is.ie || (is.dom &&
> !is.ns6)) 
> ?e.x+document.body.scrollLeft:e.pageX;
>              evt.pageY= (is.ie || (is.dom &&
> !is.ns6)) 
> ?e.y+document.body.scrollTop:e.pageY;
>              evt.x=(is.ie || (is.dom && 
> !is.ns6))?evt.pageX-evt.src.getPageX():e.layerX;
>              evt.y=(is.ie || (is.dom && 
> !is.ns6))?evt.pageY-evt.src.getPageY():e.layerY;
> 
> So, what should it be ?

Look correct to me. I've noticed that lot of the fixes
inside 2.5 were not ported to 3.0. 

Good job Benoit. Keep up the good work.

Best regards

--
Raymond Irving

> Benoit


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to