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
fullPage.js 2.4.3 not working with iframes inside container #819
Comments
Fullpage.js doesn't deal with those cases. You would have to do it by your own. In order to detect the reach of the bottom or top of your iframe, you would need to have some knowledged of jQuery or javascript. If you don't, then you should ask in other places such as stackoverflow.com where they will help you much better with it. This forum is just to treat topics about fullPage.js not about HTML,CSS, javascript or jQuery. |
Thanks for answering @alvarotrigo. That would be a good way to handle it, and possibly and I will be doing. However, this could be used as a possible improvement for fullPage.js, something like a property that user fills with an element, that keeps listenning to when visitor reaches the bottom of it it does slide to the next page. Thanks! |
Sounds like a very specific task that shouldn't be included in fullPage.js If you take a look inside fullPage.js you probably could use this function for it: /**
* Return a boolean depending on whether the scrollable element is at the end or at the start of the scrolling
* depending on the given type.
*/
function isScrolled(type, scrollable){
if(type === 'top'){
return !scrollable.scrollTop();
}else if(type === 'bottom'){
return scrollable.scrollTop() + 1 + scrollable.innerHeight() >= scrollable[0].scrollHeight;
}
} |
you can try smth like this before your iframe :
this works fine to me. I use it to fix a mobile scroll problem over iframe |
Hello,
I am afraid fullPage.js is not handling well scrolling inside iframes, and therefore misleading the user scrolling intention too, not leading to another slide when the user reaches the bottom of an iframe that totally fills a page.
You can check this issue here: http://jsfiddle.net/u6dfar7j/1/
If you scroll down to the second page, you will see that you have an iframe. Once you reach the end of the iframe, fullPage.js next slide is not called.
Any suggestions?
Thanks!
The text was updated successfully, but these errors were encountered: