mouse tracking on IE
- by Gotys
Consider the following snippet:
$(document).bind('mousemove', function(e)
{
$('#someDiv').css({left: e.pageX+'px', top: e.pageY+'px'});
});
This should make #someDiv follow the mouse (tooltip), when the css value for "position" is set to absolute.
Works as expected, except when you Zoom IN or OUT in IE7 ( dind't try other version of IE). Then the e.pageX gets completely off. The more you zoom in (using your mousewheel + CTRL), the more off the positioning gets.
I've tried to break jQuery's UI demos (sliders) and it seems not even jQuery guys have this figured out. Is there any genius out there who knows how to fix this nasty thing?
Thanks in advance!