MAX POWER
MAX POWER

Reputation: 5458

fullpage.js - allow normal scrolling up when scrolling up

Using fullpage.js, is it possible to enable normal scrolling when scrolling up but keep the default "one slide per scroll" functionality when scrolling down?

I tried the following but doesn't seem to work:

$('.full-page').fullpage({
    onLeave: function(index, nextIndex, direction) {

        if (direction == 'down') {
            $.fn.fullpage.setAllowScrolling(true);
        }

        else {
            $.fn.fullpage.setAllowScrolling(false);
        }
    }
});

Upvotes: 1

Views: 170

Answers (1)

Alvaro
Alvaro

Reputation: 41605

fullPage.js doesn't provide such feature. Feel free to create a recommendation for that in the github issues forum.

Upvotes: 1

Related Questions