[Javascript] True element coordinates on mouseevent.
David T. Lovering
dlovering at gazos.com
Thu Nov 6 14:01:57 CST 2003
The layerX/layerY routines are best used for layers defined within the CSS, or so I would conclude after some experiments. They are ideal for drag-and-drop, as the guts of most drag-and-drop routines rely on layering to work properly.
-- Dave Lovering
Håkan Magnusson wrote:
>
> Hi.
>
> Is detecting the true element mouse coordinates (the exact coordinates
> of the mouse pointer on the element it's currently hovering,
> [event.]layerX/layerY (only absolutely position/Mozilla) or
> [event.]offsetX/offsetY(IE/Safari only)) still impossible? I remember
> trying to do this a few years back, when I found out that it only worked
> for elements with position: absolute, and that makes the function
> completely useless and very stupid indeed.
>
> I'm running some tests now, but none of them makes me very happy.
>
> Regards,
> Håkan
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list