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

Re: Mouse events - coordinate systems

From: <keshlam@us.ibm.com>
Date: Thu, 22 Jun 2000 19:08:10 -0400
To: Boris.Motik@trilogy.com
cc: www-dom@w3.org
Message-ID: <85256906.007F16FF.00@D51MTA03.pok.ibm.com>
>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.

You may be able to extract that information using the DOM Level 3 "Views"
features, when that becomes available. It's _NOT_ a simple problem;
remember that there's nothing which obligates the displayed form of
elements to be cleanly nested, or even contiguous,

Joe Kesselman  / IBM Research
Received on Thursday, 22 June 2000 19:08:17 UTC

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