5
rated 0 times
[
10]
[
5]
/ answers: 1 / hits: 19327
/ 12 Years ago, sun, july 1, 2012, 12:00:00
How can I continuously get the position of the mouse whilst its button is being held down?
I know I can do:
<element onclick=functionName(event)></element>
<script>
function functionName(e){
e.pageX
e.pageY
//do stuff
}
</script>
and I know you can use the onmousedown event, but how would I continuously get the position while the button is still held down?
Oddly I couldn't find this anywhere I looked.
More From » jquery