Closed SlavisPL closed 7 years ago
in section with normal scroll
You mean, with scrollOverflow:true
? Or with normalScrollElements
?
With scrollOverflow
fullPage.js doesn't provide any option to do so. But take a look to the iScroll.js docs (vendor library used when using scrollOverflow:true) to see if you find anythign to accomplish that and then pass it to the scrollOverflowOptions
option in fullPage.js.
Thank you for your respond. Just one question - I need to initialize iScroll or only scrollOverflowOption: "disableTouch: true"
?
As can be seen on the source code the default fullPage.js options for iScroll.js are the following:
// Default options for iScroll.js used when using scrollOverflow
var iscrollOptions = {
scrollbars: true,
mouseWheel: true,
hideScrollbars: false,
fadeScrollbars: false,
disableMouse: true,
interactiveScrollbars: true
};
They are passed in this way to the scrollOverflowOptions
option:
scrollOverflowOptions: {
scrollbars: true,
mouseWheel: true,
hideScrollbars: false,
fadeScrollbars: false,
disableMouse: true,
interactiveScrollbars: true
}
You would have to pass them in the same way. As an object of options in the scrollOverflowOptions
option.
scrollOverflowOptions: {
disableTouch: true
}
The default ones will be added by fullPage.js.
Hi, Is any way to disable only touch gesture in section with normal scroll? I need to allow user scrolling only by mouse wheel.