Answer the question
In order to leave comments, you need to log in
How to prevent img from being dragged with the left mouse button pressed?
I need to disable the dragging of an image in an img tag when clicking, holding and moving the left mouse button. I need a cross-browser way in pure JS, with support for older browsers, or several different ways for different browsers. But I am ready to consider in general all possible implementations of this. Thank you for attention.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question