[英]Javascript Animation - Why Am I Unable to Scroll Now (in Chrome)
I'm playing around with the bonsai.js library, and I added a big stage
to the hero section of my site. 我在玩bonsai.js库,并在网站的英雄部分增加了一个大
stage
。 However, in Chrome, when the mouse is over the stage
(between the tagline and blue button outline), I am unable to scroll down or up. 但是,在Chrome中,当鼠标悬停在
stage
上方(标语和蓝色按钮轮廓之间)时,我无法上下滚动。 In Firefox and Safari I am still able to scroll. 在Firefox和Safari中,我仍然可以滚动。 Why is Chrome acting up?
为什么Chrome表现不佳?
Site: http://cainternet.herokuapp.com 网站: http : //cainternet.herokuapp.com
I dont know the bonsai.js library, but probably it is, because the bonsai.js library uses the wheel event and stops it from bubbling in a way, that it only affects chrome. 我不知道bonsai.js库,但可能是这样,因为bonsai.js库使用wheel事件并以某种方式阻止它冒泡,它只会影响chrome。 Check the web for "Event Bubbling" for about this topic and check the event usage in your bonsai lib.
检查网络上有关此主题的“事件冒泡”,并检查盆景库中的事件用法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.