Commit d5ad60a
authored
Default scroll direction Down
There is an edge case where if your step element is visible when `scrollTop` is 0, the scroll `direction` will be `up`. I.e. when you first load your page, the first scroll direction you'll see in `onStepEnter` will be `up`.
While admittedly an edge case, I think we should switch the logic so that the default scroll direction is `down`1 parent 319f10b commit d5ad60a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments