Bug Tracker

Modify

Ticket #4927 (closed bug: invalid)

Opened 4 years ago

Last modified 2 years ago

Wrong ClientX/ClientY calculating in FF < 1.9, Opera > 9.27 and IE

Reported by: netmac Owned by:
Priority: major Milestone: 1.4
Component: event Version: 1.3.2
Keywords: event fix Cc:
Blocking: Blocked by:

Description

If body element have a border or another kind of offset, then we have wrong clientX/clientY calculation.

  • FF with gecko < 1.9 body.offsetLeft/offsetTop don't considered.
  • in IE document.documentElement.clientLeft/clientTop should be subtracted.
  • in Opera > 9.27 with DOCTYPE needs to subtract document.documentElement.clientLeft/clientTop too.

See my fix code in attachment.

Attachments

jquery.event.fix.js Download (759 bytes) - added by netmac 4 years ago.
event.fix fix

Change History

Changed 4 years ago by netmac

event.fix fix

comment:1 Changed 3 years ago by dmethvin

  • Component changed from unfiled to event

comment:2 Changed 3 years ago by dmethvin

Related: #4818

comment:3 Changed 3 years ago by miketaylr

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

Closing as invalid. Please reopen with a working testcase. Thanks!

comment:4 Changed 2 years ago by snover

#4818 is a duplicate of this ticket.

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.