Skip to content

matthias-vogt/cursormove.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#cursormove.js

Emits events when mouse coordinates change. The difference to mousemove is that it also triggers on scroll.

$(window).cursormove();

$(window).on("cursormove", function(e) {
    console.log(e.pageX, e.pageY);
});

JS Bin Demo

##Motivation mousemove events are heavily throttled while scrolling. When you have fancy mouse parallax effects, you don't want them to be jumping around while scrolling.

##In development This is currently in development, a stable version will release soon. You're welcome to contribute :)

About

jQuery plugin to emit events when the cursor position changes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published