From: <no...@so...> - 2001-01-16 19:04:05
|
Bug #128748, was updated on 2001-Jan-14 11:07 Here is a current snapshot of the bug. Project: DynAPI 2 Category: Core API Status: Open Resolution: None Bug Group: None Priority: 5 Submitted by: eytanh Assigned to : nobody Summary: Mouse Events Details: I have found this in IE 5 and NS 4. If you try to use an event handler and you try to call e.x or e.getX or e.getPageX. (or instead of x y) you get a madeup result. (-1 all the time). I think the problem is with these lines: this.pageX=is.ie?e.x+document.body.scrollLeft:e.pageX-window.pageXOffset; this.pageY=is.ie?e.y+document.body.scrollTop:e.pageY-window.pageYOffset; this.x=is.ie?e.offsetX:e.layerX; this.y=is.ie?e.offsetY:e.layerY; I have a feeling that some of these variables are undefined and thus resulting in inaccurate results. On the other hand if instead of trying to call e.getX(); you call e.orig.x it works. Follow-Ups: Date: 2001-Jan-16 11:04 By: dcpascal Comment: Which mouseevent are you trying it on? I've just tested in IE5 (win32) with latest CVS code, and it works correctly.. could you show some example code ------------------------------------------------------- For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=128748&group_id=5757 |