Bug Tracker

Modify

Ticket #12007 (closed bug: duplicate)

Opened 11 months ago

Last modified 11 months ago

missing offsetX and offsetY in firefox

Reported by: machnikv@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:

Description

In firefox are offsetX and offsetY in events undefined.

Bugfix: Paste into mouseHooks -> filter function (line 3384) befor 'return event;' this to lines:

event.offsetX = event.offsetX
event.clientX - jQuery(event.target).position().left;
event.offsetY = event.offsetY
event.clientY - jQuery(event.target).position().top;

Change History

comment:1 Changed 11 months ago by anonymous

#edit

event.offsetX = event.offsetX || event.clientX - jQuery(event.target).position().left;
event.offsetY = event.offsetY || event.clientY - jQuery(event.target).position().top;

comment:2 Changed 11 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to duplicate

comment:3 Changed 11 months ago by dmethvin

Duplicate of #8523.

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.