From 71a3b8e645e962008d7b3b4b8ad618bf6403a944 Mon Sep 17 00:00:00 2001 From: Sergey Vinogradov Date: Sun, 28 Nov 2021 21:40:55 +0300 Subject: [PATCH] fix: prevent jumping when in UNFIXED state --- src/fsm-transitions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fsm-transitions.js b/src/fsm-transitions.js index fa3854d..d1ef63c 100644 --- a/src/fsm-transitions.js +++ b/src/fsm-transitions.js @@ -61,7 +61,7 @@ export default { }, { to: states.FINISH, - when: (d) => [d.viewportTop + d.sideInnerHeight > d.finishPoint] + when: (d) => [d.viewportBottom > d.finishPoint] }, { to: states.TOP_FIXED,