fix(input): improve reliability of scroll assist when accessory bar is enabled (#21936)

fixes #21912

Co-authored-by: Liam DeBeasi <liamdebeasi@icloud.com>
This commit is contained in:
Brandy Carney
2020-08-27 15:20:42 -04:00
committed by GitHub
parent e4964ff77b
commit 22477fb9bf

View File

@@ -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;