Skip to content
This repository was archived by the owner on Aug 6, 2019. It is now read-only.

brandonaaron/jquery-delayedmousemove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A customizable delayed mousemove event for jQuery.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published