Javascript Fullpagejs使我的导航手机停止工作
我正在使用fullpagejs和generatepress 正在使用fullpagejs的页面有一个导航菜单 在手机中,当导航菜单打开时,我无法进入菜单,touchmove无法工作 如果我关闭菜单,touchmove可以在fulpagejs之间导航 这是我的完整页面配置Javascript Fullpagejs使我的导航手机停止工作,javascript,jquery,fullpage.js,Javascript,Jquery,Fullpage.js,我正在使用fullpagejs和generatepress 正在使用fullpagejs的页面有一个导航菜单 在手机中,当导航菜单打开时,我无法进入菜单,touchmove无法工作 如果我关闭菜单,touchmove可以在fulpagejs之间导航 这是我的完整页面配置 new fullpage("#fullpage", { //options here autoScrolling: true, scrollOverflow: true, sc
new fullpage("#fullpage", {
//options here
autoScrolling: true,
scrollOverflow: true,
scrollingSpeed: 700,
css3: true,
easingcss3: "ease",
anchors: [
"project",
"project",
"project",
"project",
"project",
"project",
"project",
"project",
],
});
window.addEventListener("resize", function (event) {
fullpage_api.reBuild();
});
您可能希望将菜单添加到fullPage.js提供的
normalScrollElements
选项上
从:
normalScrollElements:(默认值null
)如果要避免在滚动某些元素时自动滚动,则需要使用此选项。(对地图、滚动div等有用)它需要一个字符串,其中包含这些元素的Javascript选择器。(例如:normalScrollElements:'#element1、.element2'
)。此选项不应应用于任何剖面/幻灯片图元本身
您可能希望将菜单添加到fullPage.js提供的
normalScrollElements
选项上
从:
normalScrollElements:(默认值null
)如果要避免在滚动某些元素时自动滚动,则需要使用此选项。(对地图、滚动div等有用)它需要一个字符串,其中包含这些元素的Javascript选择器。(例如:normalScrollElements:'#element1、.element2'
)。此选项不应应用于任何剖面/幻灯片图元本身