From c4ea194df72034d6ee850f4df567a0ea3e83eb90 Mon Sep 17 00:00:00 2001
From: Chris Garrity <chrisg@media.mit.edu>
Date: Wed, 23 Oct 2019 09:10:46 -0400
Subject: [PATCH] Fix scrolling while dragging

This is the fix from Paula for #217

based on the firebase-analytics branch, so only merge after that PR (or cherry pick this commit)
---
 ios/Podfile.lock        | 2 +-
 src/editor/ScratchJr.js | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ios/Podfile.lock b/ios/Podfile.lock
index 110d5e4..0451a82 100644
--- a/ios/Podfile.lock
+++ b/ios/Podfile.lock
@@ -95,6 +95,6 @@ SPEC CHECKSUMS:
   GoogleUtilities: f895fde57977df4e0233edda0dbeac490e3703b6
   nanopb: 2901f78ea1b7b4015c860c2fdd1ea2fee1a18d48
 
-PODFILE CHECKSUM: 7ea7f79f063091643bd6a21d5d4b4e8981dda797
+PODFILE CHECKSUM: d5c223883d3d06483e7e9d419cc9560fba5781d5
 
 COCOAPODS: 1.8.4
diff --git a/src/editor/ScratchJr.js b/src/editor/ScratchJr.js
index 9bb7a32..9e94edd 100644
--- a/src/editor/ScratchJr.js
+++ b/src/editor/ScratchJr.js
@@ -235,6 +235,11 @@ export default class ScratchJr {
         } else {
             window.onmouseup = undefined;
         }
+        document.body.addEventListener('touchmove',
+            function (e) {
+                e.preventDefault();
+            },
+            {passive: false});
     }
 
     static unfocus (evt) {