On Mon, 2002-04-08 at 21:20, Brad Pettit wrote: > Both screen coordinates and client coordinates are passed to initMouseEvent. > > Since specifying coordinates in one system defines the coordinates in the other, should the UA perform any validation of coordinates passed to initMouseEvent? > > Is there any discussion of enhancing mouse events for DOM3? > I'd like to propose the following: > > Since client/view coordinates infer screen coordinates (and vice versa), and target coordinates infer client/view coordinates, initMouseEvent could take one set of coordinates and a boolean instead of two sets of coordinates. The boolean would specify whether the coordinates are TARGET-relative or VIEW-relative. This also simplifies the dynamic generation of mouse events within script, because the script only need specify target-relative coordinates. > > Also, since it may be common for a listener to want the target-relative coordinates of a mouse event, add targetX and targetY as properties of a MouseEvent. We noted this one "for future investigation" and don't plan to add it in DOM Level 3 Events for the moment. PhilippeReceived on Friday, 31 May 2002 14:39:41 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:24:55 GMT