MouseMove event repeating every second

javascript, mousemove

Solution

Ok, I found the problem, though I don't fully understand why it was an issue.

I had Task Manager running in the background. And for some reason, every time it updated itself, it was causing IE, Safari and Chrome to receive a mousemove event.

It doesn't make sense, but at least the fix is simple: close the Task Manager.

(It's very obvious if you are in the Applications tab. If you're in Performance, it depends on what the values are set to.)

Problem

http://jsfiddle.net/MrkY9/ My computer (and so far, no other computer among my coworkers) is exhibiting an issue in Chrome, IE, and Safari (but not in Firefox). Simple `mousemove` code, such as the following (already running on the fiddle above) properly catches `mousemove` events, but then as long as the mouse is in the div, catches a `mousemove` event every second - even though I'm no longer moving the mouse. ``` var number = 0; $("#foo").on("mousemove", function() { this.innerHTML = number++ }); ``` This seems to be a browser-based problem, since it doesn't exhibit on FireFox. (Nor does it occur on Windows itself. Even when the counter is going up, if I leave my keyboard and mouse alone, my screen saver eventually kicks in.) Before concluding it's not a system issue, I tried replacing the mouse and switching the USB port it's plugged into. Not surprisingly, none of those solutions resolve the issue. I haven't figured out how to test this in anything other than javascript in a browser. Questions: Has anyone encountered this before? Is there anything I need to do to catch it? I have code far less trivial than this fiddle that rely on knowing when the mouse is and isn't moving.

Original source