简体   繁体   English

使用Scrolloverflow.js + Fullpage.js包装的内容

[英]Work with content wrapped with Scrolloverflow.js + Fullpage.js

I use Fullpage.js together with Scrolloverflow plugin for my template: 我为模板使用Fullpage.js和Scrolloverflow插件:

$('#fullpage').fullpage({
    scrollOverflow: true,
    afterRender: function() {
        $("nav").on("click", "a", function() {
            ...
        }
    }
});

On the official website they say that I need to use delegation in order to work with content wrapped by the Scrolloverflow plugin. 他们在官方网站上说,我需要使用委托才能处理Scrolloverflow插件包装的内容。 However, it doesn't seem to work in my case, because the click event doesn't work in my example. 但是,在我的情况下,它似乎不起作用,因为在我的示例中, click事件不起作用。 Any ideas? 有任何想法吗?

Are you using the latest fullpage.js version? 您使用的是最新的fullpage.js版本吗? 2.8.1? 2.8.1? That should work on desktops. 那应该在台式机上工作。

There's a known issue with iScroll.js that affect mobile devices. iScroll.js存在一个已知问题 ,会影响移动设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM