fix(scroll-assist): improve scroll detection accuracy (#21416)

This commit is contained in:
Liam DeBeasi
2020-06-03 10:01:01 -04:00
committed by GitHub
parent 5bf83b80d7
commit 137c49d70b

View File

@ -34,7 +34,7 @@ const calcScrollData = (
// compute safe area // compute safe area
const safeAreaTop = visibleAreaTop + 15; 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 // figure out if each edge of the input is within the safe area
const distanceToBottom = safeAreaBottom - inputBottom; const distanceToBottom = safeAreaBottom - inputBottom;