JavaScript quick tip: onMouseDrag (onClick + onMouseMove)
Since HTML5 came out, I’ve been wondering if JavaScript had an onMouseDrag event. Turns out they don’t. The fictional onMouseDrag event would fire when a user clicks, holds, and drags their mouse across an element on the screen. This could be useful with HTML5 sliders, like such: Value of slider: Say we wanted to change the number in the text …