Skip to main content

Bug Tracker

Side navigation

#4927 closed bug (invalid)

Opened July 20, 2009 10:55AM UTC

Closed October 26, 2010 06:05PM UTC

Last modified November 19, 2010 10:21PM UTC

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:
Blocked by: Blocking:
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 (1)
Change History (4)

Changed June 13, 2010 01:41PM UTC by dmethvin comment:1

component: unfiledevent

Changed June 25, 2010 03:49AM UTC by dmethvin comment:2

Related: #4818

Changed October 26, 2010 06:05PM UTC by miketaylr comment:3

resolution: → invalid
status: newclosed

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

Changed November 19, 2010 10:21PM UTC by snover comment:4

#4818 is a duplicate of this ticket.