From d71df52d6b7644e69738375739cf558ff5233d6f Mon Sep 17 00:00:00 2001 From: Chris Garrity Date: Fri, 25 Oct 2019 16:19:41 -0400 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20allow=20overscroll?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The iOS change seems to have a side effect on Android of adding an“Edge Effect” to the web view whenever dragging a block. (Edge effects are the grey curved shadow that appears at the top or bottom of a container when you overscroll. When you drag a block they appear at the top or bottom of the screen) Adding the `android:overScrollMode=“never”` attribute to the webview means the edge effect doesn’t appear. --- .../ScratchJr/app/src/main/res/layout/activity_scratch_jr.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/android/ScratchJr/app/src/main/res/layout/activity_scratch_jr.xml b/android/ScratchJr/app/src/main/res/layout/activity_scratch_jr.xml index c94db4c..68bb700 100644 --- a/android/ScratchJr/app/src/main/res/layout/activity_scratch_jr.xml +++ b/android/ScratchJr/app/src/main/res/layout/activity_scratch_jr.xml @@ -11,6 +11,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_centerInParent="true" + android:overScrollMode="never" />