I am trying to drag an image with Javascript (no libraries). I am able to listen to mousedown
and mousemove
events. For some reason, I am not able to capture the mouseup
event after mousemove
. (I can capture mouseup
if it is a click but not if it is a drag).
I have tried to listen to the event on document, window, and the image.
Here's the url to my test page:
https://dl-web.dropbox.com/get/Public/move.html?w=74a0d498
Any help on this would be greatly appreciated!
See Question&Answers more detail:os