How to disable dragging of images to trigger jquery mobile touch screen phones?

Can't disable the dragging of images on phones.
The network has found a bunch of different solutions:

$("#xfupload_loadcomicsimages").mousedown(function(){
return false;
});
$("#xfupload_loadcomicsimages").mousedown(function(e){
e.preventDefault()
});
$('#xfupload_loadcomicsimages').on('dragstart', function(event) { event.preventDefault(); });
$("#xfupload_loadcomicsimages").mousemove( function(e) { return false } ); // fix for IE
$("#xfupload_loadcomicsimages").attr("draggable", false); 
jQuery(document).ready(function(){ jQuery('img').mousedown(function(){return false;});});
jQuery(document).ready(function(){ jQuery('div').mousedown(function(){return false;});});


They all work fine, but only via a PC and the phone on the touch drag continues to work.
Even if Yandex browser click on the Explore item (Ctrl + Shift + I) and switch to mobile mode (Ctrl + Shift + M), even in this case, the dragging works.
April 4th 20 at 00:40
1 answer
April 4th 20 at 00:42
If I understand correctly, you can try CSS:
img {
 pointer-ivents: none;
}

Accordingly, in JS:
image.pointerIvents = "none";

It prohibits any action with the picture, as if it doesn't exist (but it is still visible).

If you want to keep all events, that is, the second solution is to put the image in background (blocks cannot be dragged all the events unit will work)
Know about this method, but the "click" you need to leave. - ransom0 commented on April 4th 20 at 00:45
Another solution is to put the picture in the background. Blocks cannot be dragged all the events unit will work. - libbie_Marquar commented on April 4th 20 at 00:48

Find more questions by tags jQuery