I'm using fullpage js on my website and inside one of the sections I have included an iframe.
If you move to the last section in the example above you can't scroll further down unless you scroll outside the iframe. I found that this method in fullpage can be used to move a section up. fullpage method
$(document).on('click', '#moveUp', function(){
$.fn.fullpage.moveSectionUp();
});
Also this code can be used to detect if the iframe has reached the bottom. example iframe reaching bottom
$(window).scroll(function () {
if ($(window).scrollTop() == $(document).height() - $(window).height())
alert('Bottom reached');
});
The issue is discussed in this link as well but I cannot understand whats explained as the solution. How can I use these two examples to make the page scroll up and down after iframe reaches top or bottom?