W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2000

Mouse events - coordinate systems

From: <Boris.Motik@trilogy.com>
Date: Wed, 21 Jun 2000 15:28:54 -0400 (EDT)
To: www-dom@w3.org
Message-ID: <OFFFACE948.A3837FF5-ON86256905.00693F3F@trilogy.com>
It seems to me that it would be useful if MouseEvent class had a property
that would enable listners to learn about coordinates of the event within
the element's own coordinate system. Currently, there are only properties
clientX, clientY that show coordinates relative to document and screenX,
screenY that show coordinates with respect to screen.

However, it would be very useful to have something linke offsetX, offsetY
that would show mouse coordinates relative to the origin of the element
(e.g. a DIV element) within which the event occured. Netscape already
offers this in form of Event.layerX, Event.layerY and Internet Explorer
offers this in form of Event.offsetX, Event.offsetY. However, none of those
properties are standard part of DOM.
Received on Thursday, 22 June 2000 17:02:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC