diff --git a/scripts/_GameMaker.js b/scripts/_GameMaker.js index ff520a7d..f415a6a7 100644 --- a/scripts/_GameMaker.js +++ b/scripts/_GameMaker.js @@ -827,10 +827,14 @@ function GameMaker_Init() }); /* ...this helps with eliminating stutter on mobile */ - document.addEventListener('touchstart', e => { - e.preventDefault(); - }, { - passive: false + canvas.addEventListener("touchstart", (e) => e.preventDefault(), { + passive: false, + }); + canvas.addEventListener("touchmove", (e) => e.preventDefault(), { + passive: false, + }); + canvas.addEventListener("touchend", (e) => e.preventDefault(), { + passive: false, }); g_FrameStartTime = Date.now();