jquery-delayedmousemove icon indicating copy to clipboard operation
jquery-delayedmousemove copied to clipboard

A customizable delayed mousemove event for jQuery.

jQuery Delayed Mouse Move Event

A jQuery plugin that makes the mousemove event have a configureable delay. It has two modes of behavior: throttle or debounce.

To configure the event use the data argument of the bind method like this.

$('div').bind('mousemove', { behavior: 'debounce', delay: 250 }, fn);

The default behavior is 'throttle' and the default delay is 100. These settings apply to all future mousemove event handlers bound to the specific element. In other words the event is configureable per an element.

Inspiration for this plugin comes from this article on debouncing in JavaScript by John Hann.

License

The Delayed Mouse Move Event plugin is dual licensed (just like jQuery) under the MIT and GPL licenses.

Copyright (c) 2009 Brandon Aaron