Ticket #6934 (closed bug)
layerX/layerY vs. offsetX/offsetY
|Reported by:||jenmic||Owned by:||jenmic|
I use jQuery 1.4.2 and observed that the attributes layerX/layerY (e.g. Firefox) and offsetX/offsetY (e.g. IE) of mouse events like click are not normalized:
In both browsers all four attributes are available on the jQuery Event object. But layerX/layerY is only filled in Firefox and offsetX/offsetY only in in IE. So I have to consider the browser to find out which attribute to use to find the relative click position within the target.
Is this intended?