[英]How to use the default browser scrollbar when `scrollOverflow:true` on fullPage.js?
Is there a way to use the browser native scrollbar when scrollOverflow:true
instead of the additional scrolloverflow.js
file?有没有办法在
scrollOverflow:true
而不是额外的scrolloverflow.js
文件时使用浏览器本机滚动条?
I want to use fullPage.js only on the home page of a WP site and I want all pages to have the default scrollbar.我只想在 WP 站点的主页上使用 fullPage.js,并且我希望所有页面都具有默认滚动条。
I managed to solve it by setting scrollOverflow:false
(default value) and defining an extra container inside the desired fullpage section like this:我设法通过设置
scrollOverflow:false
(默认值)并在所需的整页部分定义一个额外的容器来解决它,如下所示:
<div id="fullpage">
<div class="section">
<div class="inner-section">...</div>
</div>
...
</div>
CSS: CSS:
.inner-section {
height: 100%;
overflow-y: scroll;
}
This seems to work fine on desktop screens, but on mobile screens, there are problems with swiping.这在桌面屏幕上似乎工作正常,但在移动屏幕上,滑动有问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.