mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
fix(scroll-assist): improve scroll detection accuracy (#21416)
This commit is contained in:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user