fullPage.js icon indicating copy to clipboard operation
fullPage.js copied to clipboard

How do I change direction of scroll in mid scroll?

Open Livog opened this issue 10 years ago • 1 comments

It is very frustrating from a UI perspective that you have to wait for the animation to finish before I can go to next section. Is there anyway to fix this or have I missed some setting? Because that would make this 10 out of 10!

Thanks in advance!

Livog avatar Nov 23 '14 11:11 Livog

Hey @Livog, I guess you'll find it "interesting" that I'm replying to this thread 7 years later :)

First of all, thanks for the suggestion! Seems quite a reasonable one!

I'll be adding an option allowCorrectDirection on the next version of fullPage.js based on your suggestion.

I'm making it optional because it might conflict with the way people design their sites. This is something they'll have to be aware of when turning this option on.

They might trigger state changes, animations, or business logic changes on the onLeave callback expecting the visitor to land on the next section. If the user doesn't land in there because they change direction on the middle of the scrolling, this might cause some unexpected issues in their logic.

If you have any suggestions I'll be happy to hear it. You see, even if I end up replying 7 years later I'll take them into account! ;)

alvarotrigo avatar Oct 04 '21 16:10 alvarotrigo