-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
Labels
Description
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
- Copy the content of this codepen in a page in local
- Make sure to have a local version of a page using fullPage.js
- Replace the src for the iframe with the local fulllPage.js page.
- Load the page
- It will scroll to the dynamically loaded iframe
Versions
Safari, Firefox, Chrome...
fullPage.js 4.0.21 and probably some other previous versions