I\'m trying to use JavaScript drag an image around the screen. I\'ve already written a script that works fine on divs with text, but when I use it on a image it works very inter
You may add e.preventDefault(); at the end of your startDrag function
e.preventDefault();
startDrag