-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Loading fullPage.js in an iframe forces scroll of parent window #4628
Labels
Comments
Fixed in 4.0.23! 🥳 |
This was referenced Sep 16, 2024
This was referenced Sep 27, 2024
This was referenced Oct 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When loading fullPage.js inside an iframe, unless the option
scrollBar: true
is used, fullPage.js forces the parent window to scroll to the loaded iframe.Link to isolated reproduction with no external CSS / JS
https://codepen.io/alvarotrigo/pen/OJYvRXv
It won't work on Codepen, but you can copy the code and run a separate page to reproduce it.
Make sure both pages run in the same domain. I suspect it only works when the iframe and the parent are both the same domain.
Steps to reproduce it
Versions
Safari, Firefox, Chrome...
fullPage.js 4.0.21 and probably some other previous versions
The text was updated successfully, but these errors were encountered: