alvarotrigo / alvarotrigo/fullPage.js
Allow normal scrolling when scrolling up
未關閉
enhancement
- 主要語言
- JavaScript
- 星號
- 35.4k
- 分支
- 7.1k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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);
}
}
});
```
貢獻指南
評估
這個 Issue 還沒有評估資料。