jquery - How does the triggering of mousemove work in Javascript? -
i have object prints mouse's x , y positions on every mousemove.
it's this:
$('#canvas').mousemove(function(e){ $('#output').prepend(e.pagex + ',' + e.pagey); });
i've noticed when move on object fast prints out few positions.
i'm not unhappy (because quite exhaustive have hundreds of pixels you've crossed) wondering how works.
is mousemove event limited amount of triggers per second or what?
(btw: tested on chromium in ubuntu linux)
Comments
Post a Comment