调整scrollOverflow大小时的Fullpage.js创建错误页面视图进入底部

时间:2019-06-09 03:41:42

标签: jquery scroll resize responsive fullpage.js

我最近开始将fullPage.js用于一个项目,但遇到一个问题:
如果我使用scrollOverflow:当我调整浏览器页面大小到底部时为true

这是我的代码:

        scrollingSpeed: 800,
        autoScrolling: homeAutoScrolling,
        fitToSection: false,
        fitToSectionDelay: 1000,
        scrollBar: true,
        ...
        offsetSections: true,
        scrollOverflow: true,
        scrollOverflowReset: false,
        scrollOverflowOptions: {
          scrollbars: false,
          mouseWheel: true,
          hideScrollbars: true,
          fadeScrollbars: false
        },
        touchSensitivity: 15,
        normalScrollElementTouchThreshold: 5,
        animateAnchor: true,
        recordHistory: false,
        controlArrows: true,
        verticalCentered: true,
        sectionSelector: '.full-screen',
        slideSelector: '.full-screen',
        lazyLoading: true,

        onLeave: function (index, nextIndex, direction) {},
        afterLoad: function (anchorLink, index) {},
        afterRender: function () {},
        afterResize: function () {},
        afterResponsive: function (isResponsive) {},
        afterSlideLoad: function (anchorLink, index, slideAnchor, slideIndex) {},
        onSlideLeave: function (anchorLink, index, slideIndex, direction, nextSlideIndex) {}
      })
    }

如果我使用scrollOverflow:可以调整大小时返回false,但是我需要scrollOverflow:true才能滚动包含较长内容的部分。

这里还有其他我想解决的问题吗?谢谢!

0 个答案:

没有答案