Can I get cursor position at mousedown(event)
event, without using mousemove(event)
continuously (thus waisting resources)? event.pageX
returns NaN
on mousedown
On behalf of James:
from - http://jsfiddle.net/interdream/JsaPG/3/
<input type="button" id="test" value="click" style="width:200px" />
$("#test").mousedown(function(e) {
console.log(e.pageX);
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With