I'm using iScroll 5 with fullpage.js because the solution provided by fullpage.js is not what I need.
My page has 3 full page sections. The 2nd section has a vertical scrollable content.
What I need to do is to detect when my scrollable content is in the boundaries of the parent element(top and bottom), then if I perform again the scroll(both, mousewheel or touch), it fires an event.
Here's a Fiddle with the problem.
I need something like this:
$('.scrollwrapper').on("mousewheel touchmove", function() {
if ("scroll is on max top"){
$(this).on("wheelUp touchmoveUp", function() {
$.fn.fullpage.moveSectionUp();
});
}else if ("scroll is on max bottom"){
$(this).on("wheelDown touchmoveDown", function() {
$.fn.fullpage.moveSectionDown();
});
}
});
Hope you can help me, I'll appreciate any help.