且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在滚动阻止的"touchstart"事件中添加了非被动事件侦听器

更新时间:2021-11-05 21:54:09

好吧,对此进行更多的挖掘,这不是一个新的行为,前一阵子已经报道过,jQuery仍未解决.

Ok digging this up a little more, this is not a new behavior, it has been reported a while ago and jQuery still hasn't fixed it.

问题在于,要使处理程序成为passive,必须确定从不调用preventDefault(),但是jQuery事先不知道...

The problem lies in the fact that for an handler to be passive it has to be certain of never calling preventDefault() but jQuery doesn't know in advance...

我唯一可以给您的提示是更改控制台日志记录级别并删除详细".跟踪此问题,以获取解决此问题的想法.

The only tip I could give you is change your console logging level and remove "Verbose". Follow up on this issue for ideas on solving this.