Disable longPress action on mobile with javascript
问题 in this period,I make some new webApps, but I have a big problem with drag and drop. I write a file manager in javascript, but when on mobile (smartphone, tablet andorid or iOs) I try to work drag and drop, the phone show me the longPress menu (on folder icon for examample) for copy url or image. there is some way in JS to disable longPress on mobile? load image via css, isn't a valid solutions for me. 回答1: -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */