Hi I have been looking at jQuery's drag library for a method whereby if I hold the mouse button and drag the mouse, then release the button, I get the start and end coordinates of that drag, based on raw screen pixels. I have drawn a blank on that, and haven't found anything on StackOverlaod either.
Can anyone recommend an example?
Thanks Graham
You can use get the events of dragstart and dragend. Try this code
Edited If you want to get the mouse position without a drag element, use like this