Saw hundreds of warning on Latest Chrome F12 device mode when scrolling jtsage-TimeFlipBox?

让人想犯罪 __ 提交于 2019-12-11 12:05:02

问题


The specific warning message is:

Unable to preventDefault inside passive event listener due to target being treated as passive.

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/

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.

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

Any suggestions?


回答1:


Use this CSS:

.ui-datebox-container {
  touch-action: none;
}

Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action



来源:https://stackoverflow.com/questions/50593504/saw-hundreds-of-warning-on-latest-chrome-f12-device-mode-when-scrolling-jtsage-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!