Added non-passive event listener to a scroll-blocking 'touchstart' event

前端 未结 4 1831
旧巷少年郎
旧巷少年郎 2021-01-31 16:32

Suddenly today out of nowhere I started getting this one on every page on our website

Added non-passive event listener to a scroll-blocking \'touchstart\' event.         


        
4条回答
  •  情书的邮戳
    2021-01-31 16:59

    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.

    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.

提交回复
热议问题