on my site I have html structure like:
<div>
<div class="w1">
<div class="s1">...</div>
<div class="s2">...</div>
<div class="s3">...</div>
</div>
<div class="w2">....
</div>
And I init scrollify on w1 and it works fine. But I want to enable normal scrolling after last sections (s3), so based on scrollify - scroll normally after last section? I have added
$(document).on('scroll', function (e) {
var top = $('.section-class-name:last').offset().top;
var screenTop = $(document).scrollTop();
if (top > screenTop && $.scrollify.isDisabled()) {
$.scrollify.enable();
$.scrollify.update();
} else if (top <= screenTop && !$.scrollify.isDisabled()) {
$.scrollify.disable();
}
});
with slight change (<= ratehr then < so it will be disabled on last section) and it works kind of fine : it it disabling scrollify on last section and scrollify wheelHandle returns tru, but nothing happens on site, its not scrolling up or down. Do you guys have any if its even possible to achive what I am aiming for?