最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

infinite scroll - On scrolling showing intervesion error in chrome console

programmeradmin10浏览0评论

When I scroll the page in chrome it show the intervention error. I tried adding various script like

window.addEventListener("mousedown,wheel", handleMouseDown, { passive: false});

but unable to fix that. Please see screenshot attached.

When I scroll the page in chrome it show the intervention error. I tried adding various script like

window.addEventListener("mousedown,wheel", handleMouseDown, { passive: false});

but unable to fix that. Please see screenshot attached.

Share Improve this question asked Apr 15, 2019 at 12:02 Pawan KumarPawan Kumar 1135 bronze badges 3
  • What is handleMouseDown? – Jacob Peattie Commented Apr 16, 2019 at 1:52
  • Basically this is the callback function but have you any idea how to fix this issue. – Pawan Kumar Commented Apr 16, 2019 at 7:01
  • I know that. What’s the code? – Jacob Peattie Commented Apr 16, 2019 at 7:08
Add a comment  | 

1 Answer 1

Reset to default 0

I got an answer as google chrome has updated the feature of preventDefault on javascript. So if you delete this (preventDefault ) from js library then error generating would be removed.

发布评论

评论列表(0)

  1. 暂无评论