How do I drag an image smoothly around the screen using pure javascript January 7, 2024 by Tarik Simply add return false at the end of your startDrag function to keep the browser from handling the click event.