From: Abre C. <ac...@ou...> - 2003-02-18 22:53:26
|
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=3Dis.ie?e.x+document.body.scrollLeft:e.pageX; // e.x =3D 110, = document.body.scrollLeft =3D 0 evt.x=3Dis.ie?evt.pageX-evt.src.getPageX():e.layerX // pageX =3D 110, = src.getPageX =3D 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 |