alvarotrigo / alvarotrigo/fullPage.js
Allow normal scrolling when scrolling up
Ouverte
enhancement
- Langage dominant
- JavaScript
- Étoiles
- 35.4k
- Forks
- 7.1k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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);
}
}
});
```
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.