[英]Fixed Header Blocks Scrolling through fullPage.js Sections with “scrollOverflow: true”
A fixed header on my website blocks scrolling, when hovering, through sections when set scrollOverflow: true
. 我的网站上的固定标题阻止了滚动(在悬停时)在设置
scrollOverflow: true
时的scrollOverflow: true
部分中的滚动。
When fixed header is not hovered scrolling through all sections works fine. 当固定头未悬停时,滚动浏览所有部分均正常。
How can I achieve the same browsing through sections, when hovering fixed header? 悬停固定标题时,如何在各节中实现相同的浏览?
Isolated Reproduction: https://jsfiddle.net/o5Lcpemw/1/ 独立复制: https : //jsfiddle.net/o5Lcpemw/1/
Steps to reproduce it: 重现它的步骤:
MacOS High Sierra, latest Chrome Release MacOS High Sierra,最新的Chrome版本
You could stop allowing the header to respond to mouse events by setting the element's pointer-events value to none: 您可以通过将元素的指标事件值设置为none来停止允许标头响应鼠标事件:
#header {
...
pointer-events: none;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.