From 22477fb9bf7c0637aa5c8d0aab34c8ccc521b0b9 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Thu, 27 Aug 2020 15:20:42 -0400 Subject: [PATCH] fix(input): improve reliability of scroll assist when accessory bar is enabled (#21936) fixes #21912 Co-authored-by: Liam DeBeasi --- 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 4ea4e7d5c7..649609db53 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 - 15; + const safeAreaBottom = visibleAreaBottom * 0.75; // figure out if each edge of the input is within the safe area const distanceToBottom = safeAreaBottom - inputBottom;