New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clear fitToSectionDelay when declaring setFitToSection(false) #4590
Comments
Unfortunately, that's not possible at the moment. Any reason why you can't just disable it before the user scrolls? |
I understand, but thank you for the answer! I was aiming to disable or enable it when the user scrolls past different parts of the page. But once it was enabled it had to fit to a section before it was disabled, no matter how long you scrolled for. |
Maybe you can use the |
Is there a way to prevent a section to fit the screen when you declare fullpage_api.setFitToSection(false)
during the delay period of fitToSectionDelay? As of now you have to wait for the delay to run out before it's disabled.
Using the demo from the documentation https://codepen.io/alvarotrigo/pen/GJXNYm and reproduce the following steps:
The closest section still scrolls to the top even though I would assume the function is disabled.
fullPage.js v4.0.20
The text was updated successfully, but these errors were encountered: