From 8914c15493890f3a94478949709d04d702a49d73 Mon Sep 17 00:00:00 2001 From: Chris Garrity Date: Thu, 31 Oct 2019 13:04:37 -0400 Subject: [PATCH] revert ios scroll fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ‘fix’ for the ios scrolling bug prevented scrolling of the library. Things need to be refactored. --- src/editor/ScratchJr.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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) {