- From: Philippe Le Hegaret <plh@w3.org>
- Date: 31 May 2002 14:38:55 -0400
- To: Brad Pettit <bradp@microsoft.com>
- Cc: www-dom@w3.org
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. Philippe
Received on Friday, 31 May 2002 14:39:41 UTC