Skip to main content

Bug Tracker

Side navigation

#13712 closed bug (notabug)

Opened April 02, 2013 02:56PM UTC

Closed April 03, 2013 12:20AM UTC

[Bug] mouse position

Reported by: franck.spada@gmail.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:
Description

Hello,

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 :

http://jsfiddle.net/29Jn9/

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?

Thanks

Attachments (0)
Change History (1)

Changed April 03, 2013 12:20AM UTC by m_gol comment:1

_comment0: Actually, 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/ [[BR]] \ 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.1364948514877479
_comment1: 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/ [[BR]] \ 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.1364948566880559
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.