jQuery special events movestart, move and moveend for tracking touch and mouse moves, throttled to browser animation frames, and exposing information about distance and velocity of fingers.
Move events provide an easy way to set up press-move-release interactions on mouse and touch devices.
stephband.info/jquery.event.move/
Move event objects are augmented with the properties:
Use them in the same way as you normally bind to events in jQuery:
jQuery('.mydiv')
.bind('movestart', function(e) {
// move starts.})
.bind('move', function(e) {
// move .mydiv horizontally
jQuery(this).css({ left: e.startX + e.deltaX });
}).bind('moveend', function() {
// move is complete!
});
To see an example of what could be done with it, stephband.info/jquery.event.move/
If you use move events on something interesting, tweet me @stephband!