Delay the execution as soon as possible.
var doc = document.documentElement;
doc.onmousemove = (function(i){
return function(e){
if(i !== 0)
clearTimeout(i);
i = setTimeout(function(){
console.log(e.pageX+', '+e.pageY);
i = 0;
}, 1);
};
})(0);
if it is a browser bug, it is probably a double fired event, once for the X
and once for the Y axis.
On Thu, Aug 6, 2009 at 10:50 AM, [email protected] <
[email protected]> wrote:
>
> Anyone any ideas about how to feature detect it?
>
> Stephen.
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---