-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. #360
Comments
This causes also a bug when you have scrollbars for the page: on svg when you wheel scroll, page scrolls and also svg is zoomed. Affects only Chrome on all platforms as far as I know. @ariutta would you be able to fix this? |
I also encountered the same issue. Tested on Chrome browser. Can we have this fixed ? Chrome Debug log: |
I found this thread on another github project that provided a solution to a similar issue, hopefully it helps this project as well. |
Still not fixed? |
Replace lines 1580 and 1592 of the unminified code:
...with:
This solution was adapted from here, which offers an explanation as to what this does and why it works. I haven't thoroughly tested it but it seems to resolve the console errors and allows the SVG to be zoomed without scrolling the page. |
How about for the minified code? |
My google chrome is Version 96.0.4664.110 (Official Build) (64-bit)
|
I'm still seeing this issue. Any update? |
I'm running version 3.12.1. Where do I add this code in this version? I'm having a hard time tracking it down |
Hi there!
In your example "SVG Inserted with Embed Element" if you switch to console in development tools of chrome (version 73 or newer) you will receive the following error in console:
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive.
Expected behaviour
this error should not appear in console
Configuration
v3.6.0
google chrome 79.0
OSX
The text was updated successfully, but these errors were encountered: