H5 disables img preview

some Zhuo phones open the h5 page in qq, click Img to preview it, and then press the picture to download it. Is there any way to solve it?

Aug.18,2021

if you don't want to make major changes, you can consider adding pointer-events:none; to all img tags (of course, those with events should drop Filter); if you are not afraid of changes, go directly to Canvas. If the interface is complex, you can consider finding a UI system to do it, which is not difficult.


$("body").on("contextmenu", "img", function(e) {
  return false;
});

https://stackoverflow.com/que.


img bind touch event
return fasle;
this applies to img without event

the background image cannot be downloaded.

Menu