

And for your needs, it is equivalent to modifying the browser settings (modifying the files in the hard disk), which poses a great security risk.

Window.addEventListener('touchmove', fn, false)Īs far as I know, for security reasons, JavaScript cannot implement such a requirement, and it does not have access to the operating system. Window.addEventListener('touchend', fn, false) Window.addEventListener('touchstart', fn, false) Window.addEventListener('contextmenu', fn) I tried some event monitoring, but it didn't work ĭocument.addEventListener('mousedown', fn)ĭocument.addEventListener('contextmenu', fn)ĭocument.addEventListener('mousemove', fn)ĭocument.addEventListener('touchstart', fn, false)ĭocument.addEventListener('touchend', fn, false)ĭocument.addEventListener('touchmove', fn, false) I want to disable mouse gestures in edge browser with JavaScript,Because it interferes with my right-drawing function
