alvarotrigo / alvarotrigo/fullPage.js

Allow normal scrolling when scrolling up

未關閉
#2,846 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。