Skip to content

Commit

Permalink
fix: prevent jumping when in UNFIXED state
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen committed Nov 28, 2021
1 parent e7850b4 commit 71a3b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fsm-transitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 71a3b8e

Please sign in to comment.