anvaka / panzoom

Universal pan and zoom library (DOM, SVG, Custom)
https://anvaka.github.io/panzoom/demo/attach-via-script.html
MIT License
1.82k stars 293 forks source link

Unable to preventDefault inside passive event listener #227

Open TimoKunze opened 3 years ago

TimoKunze commented 3 years ago

With Electron 10 and panzoom 9.4.1 I get lots of this entry in the console:

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

It links to https://www.chromestatus.com/features/5093566007214080 The entries are caused by the call to e.preventDefault() in handleTouchMove.

Does anybody else have this problem? I'm not sure whether it's really a problem with panzoom of somehow caused by my code.

Fortunately everything still seems to work.

toremato commented 2 weeks ago

Currently seeing the same error. It's a non-breaking error in the lib

Don't know how to fix it though