From 137c49d70be45e1b0ee73d41fed6e9d69a2caa32 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 3 Jun 2020 10:01:01 -0400 Subject: [PATCH] fix(scroll-assist): improve scroll detection accuracy (#21416) --- core/src/utils/input-shims/hacks/scroll-data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/utils/input-shims/hacks/scroll-data.ts b/core/src/utils/input-shims/hacks/scroll-data.ts index bb3f01599d..4ea4e7d5c7 100644 --- a/core/src/utils/input-shims/hacks/scroll-data.ts +++ b/core/src/utils/input-shims/hacks/scroll-data.ts @@ -34,7 +34,7 @@ const calcScrollData = ( // compute safe area const safeAreaTop = visibleAreaTop + 15; - const safeAreaBottom = visibleAreaBottom * 0.5; + const safeAreaBottom = visibleAreaBottom - 15; // figure out if each edge of the input is within the safe area const distanceToBottom = safeAreaBottom - inputBottom;