Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13712 closed bug (notabug)

[Bug] mouse position

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:



I use a tooltip jQuery plugin based on jQuery position to calculate mouse position and to display the tooltip at mouse.

This works good in jQuery 1.8.2 but not in jQuery 1.9.0 (in all browsers). There is a gap as you can see here when you pass mouse of the links :


It is not a problem with plugin.

I think, it is a regression which appears in new version of jQuery. jQuery 1.9.0 does not take into account negative margins in computing the position of the mouse.

I use negative margin necessary to display sticky footer on the bottom of the page.

Can you help me?


Change History (1)

comment:1 Changed 10 years ago by m_gol

Resolution: notabug
Status: newclosed

jQuery in both version does take negative margins into account; the problem is different. It seems jQuery 1.8.3 was counting body offset incorrectly, in jQuery 1.9.x it's fixed. See the following fiddles ilustrating the inconsistency in jQuery 1.8.3:

Fiddle with jQuery 1.9.1: http://jsfiddle.net/m_gol/29Jn9/22/
Fiddle with jQuery 1.8.3: http://jsfiddle.net/m_gol/29Jn9/20/

Please, next time make some effort to create a minimal example showing the problem; the fiddle you created was huge, it's really hard to debug sth like that.

I'm closing it since current behavior is correct. It's the plugin that needs to be fixed.

Last edited 10 years ago by m_gol (previous) (diff)
Note: See TracTickets for help on using tickets.