+ 3
Js ontouchstart problem
Hi I have decided to make a game but ran into a problem when ontouchstart is held to long the copy and paste menu pops up and brakes the game is there away to stop this possibly disable copy and paste?🤔 Thanks
2 Réponses
+ 2
Maybe try
el.addEventListener("contextmenu", e => {
e.preventDefault();
});
I'm not sure if that will solve it, but that'd be my first guess. Either way you'll have to `preventDefault` some event.
+ 2
Schindlabua thanks I'll give it a try