问题描述
特定的警告消息是:
由于目标被视为被动,因此无法阻止被动事件侦听器中的默认.
Unable to preventDefault inside passive event listener due to target being treated as passive.
如果您使用Chrome F12的设备"模式,则JTSage可以在演示站点中轻松重现此问题-在F12控制台中有很多警告.
This issue can also be reproduced easily in the demo site by JTSage if you use chrome F12 "Device" mode -- many warning in F12 console.
http://dev.jtsage.com/DateBox/jqm/timeflipbox/
http://dev.jtsage.com/DateBox/
是否值得关注?有时,我的Chrome模拟器会冻结.但是我不确定这是否与那些警告有关.
Is it something to be concerned about? Occasionally my Chrome simulator would freeze. But I do not know for sure if this is related to those warnings.
我也用谷歌搜索了以下链接,但是我对如何在jtsage timeflipbox上应用他们的建议还不了解:
I have also googled a bit to find below link, but I do not know enough on how to apply their suggestions on jtsage timeflipbox yet:
https://github.com/bevacqua/dragula/issues/468
有什么建议吗?
推荐答案
使用此CSS:
.ui-datebox-container {
touch-action: none;
}
参考: https://developer.mozilla.org /en-US/docs/Web/CSS/touch-action
这篇关于滚动jtsage-TimeFlipBox时在最新的Chrome F12设备模式上看到数百条警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!