This may or may not be related to the DynAPI...

I'm using 2.5.7 and have been tasked with porting some existing code to the Mac IE5.2 
environment.  I've noticed that the getX() method of the DynEvent returns incorrect 
values.  The event is occurring in a DynLayer which was created inline - which may 
have something to do with the problem...

I've done some debugging (mouse.js ~line 83):

evt.pageX=is.ie?e.x+document.body.scrollLeft:e.pageX;  // e.x = 110, 
document.body.scrollLeft = 0
evt.x=is.ie?evt.pageX-evt.src.getPageX():e.layerX        // pageX = 110, src.getPageX 
= 101

It seems that the initial e.x is being reported incorrectly.  That value should be 
closer to 100.  From what I can tell, this is the "unmolested" browser event's x 
property.  Is the browser returning an incorrect coordinate?  Is it buffered with 
something like document.body.offsetX?  Is anyone aware of issues involving the event.x 
property being incorrect for IE5 on the Mac?

I've read that document.body.scrollLeft is unreliable and should be replaced with 
document.documentElement.scrollLeft.  Any truth to that?

Thanks in advance for any advice/discussion.

- Abre


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to