diff --git a/src/editor/ScratchJr.js b/src/editor/ScratchJr.js index 90c4623..9bb7a32 100644 --- a/src/editor/ScratchJr.js +++ b/src/editor/ScratchJr.js @@ -226,17 +226,15 @@ export default class ScratchJr { static editorEvents () { document.ongesturestart = undefined; + document.ontouchmove = function (e) { + e.preventDefault(); + }; window.ontouchstart = ScratchJr.unfocus; if (isTablet) { window.ontouchend = undefined; } else { window.onmouseup = undefined; } - document.body.addEventListener('touchmove', - function (e) { - e.preventDefault(); - }, - {passive: false}); } static unfocus (evt) {