Skip to main content

Bug Tracker

Side navigation

#6934 closed bug ()

Opened August 24, 2010 09:27AM UTC

Closed November 11, 2010 11:09PM UTC

Last modified March 14, 2011 09:58PM UTC

layerX/layerY vs. offsetX/offsetY

Reported by: jenmic Owned by: jenmic
Priority: undecided Milestone:
Component: event Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:
Description

Hi,

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?

This seems to be related to the following tickets:

http://dev.jquery.com/ticket/2451

http://dev.jquery.com/ticket/2911

Thanks

Attachments (0)
Change History (3)

Changed October 15, 2010 04:29AM UTC by snover comment:1

milestone: 1.4.2
owner: → jenmic
priority: → undecided
status: newpending

Please provide a working testcase. Thank you!

Changed November 11, 2010 11:09PM UTC by trac-o-bot comment:2

status: pendingclosed

Automatically closed due to 14 days of inactivity.

Changed March 14, 2011 09:58PM UTC by dhill@wsi.com comment:3

This should be re-opened. At least one of these coordinate sets (either layer or offset) needs to be added to the normalized list. As is, there is no normalized equivalent for this frame of reference.