Bug Tracker

Modify

Ticket #6934 (closed bug)

Opened 3 years ago

Last modified 2 years ago

layerX/layerY vs. offsetX/offsetY

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

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

Change History

comment:1 Changed 3 years ago by snover

  • Owner set to jenmic
  • Priority set to undecided
  • Status changed from new to pending
  • Milestone 1.4.2 deleted

Please provide a working testcase. Thank you!

comment:2 Changed 3 years ago by trac-o-bot

  • Status changed from pending to closed

Automatically closed due to 14 days of inactivity.

comment:3 Changed 2 years ago by dhill@…

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.