Update 2016:
I need to do this in the jQuery slider plugin I'm working on. What I did was define the cursors in CSS and then add / remove them on touch / mouse events using jQuery.
CSS
.element:hover{ cursor: move; cursor: -webkit-grab; cursor: grab; } .element.grabbing { cursor: grabbing; cursor: -webkit-grabbing; }
JS:
$(".element").on("mousedown touchstart", function(e) { $(this).addClass('grabbing') }) $(".element").on("mouseup touchend", function(e) { $(this).removeClass('grabbing') })
David source share