You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really great if there was a way to hook into a beforeLeave(index, nextIndex, direction) callback and halt the normal movement between sections with a cancelMove() method.
This is because in some cases I don't want the next scroll/swipe to move to the next section but to trigger something else within the current section instead, like an animation or something. For example:
...
<section><p>This paragraph appears from the start</p><pclass="hidden">This one fades in with the next swipe</p></section>
...
It would be really great if there was a way to hook into a
beforeLeave(index, nextIndex, direction)
callback and halt the normal movement between sections with acancelMove()
method.This is because in some cases I don't want the next scroll/swipe to move to the next section but to trigger something else within the current section instead, like an animation or something. For example:
The text was updated successfully, but these errors were encountered: