-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Chrome is logging [Violation] errors in verbose console mode #1795
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
Comments
I got the sense maybe they just added this to escalate the awareness of this general issue. I think it has to do with whether scrolling bubbles up to the window and then executes the callback or whether it executes the callback and then bubbles up to the window. Presumably it's more expensive UI-responsiveness-wise to block scrolling on your custom callback. Or something. See: https://developers.google.com/web/updates/2016/06/passive-event-listeners |
Related to #1240 |
Let's see… this is a pretty good description of how to detect and apply it: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md |
cc @dfcreative , which might know what this is about. |
Did this ever get fixed...? My events are crashing when I try to perform some logic... I just get TONS of events. |
@dfcreative you're going for this? |
Any thoughts on getting this fixed? We're showing multiple charts on the screen at once and these non-passive listener violations are flooding the console. FYI, doing this is explained in detail at: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md |
Unfortunately, this ticket fell off our short-term priority list. We'll gladly accept PRs from whoever is comfortable for the specs mentioned above. In the meantime, the only workaround I can propose is to turn off Chrome's verbose logging level. |
Interesting report in https://community.plot.ly/t/scrollzoom-doesnt-work-in-chrome/7356 that might be related to this ticket. |
I am not sure we can fix that. In both cases where we attach event listener ( |
Ok. We can't just close this as clearly some people are finding this annoying. I wonder if there's a way to turn off the those console warning without altering the functionality. |
#2251 fixes that, although exposes event listener on DOM node. |
There is also a dependency on mouse-wheel, which has not been patched. It is used in |
Was this closed because it was fixed or because it's being tracked in #1240?
|
I am seeing it in an electron v2.0.0-beta.1 app, which uses Chrome 61. (Happens when I |
My reply clearly states the root of the problem: Look at the bottom of wheel.js in that repo. |
@oscar-broman I don't think that would explain the message I encountered though, right? In my case it was regarding |
Right and |
OK, I broke my own promise and spent more time digging into this one. |
Ok thanks! I guess the least I can do at this stage is to reopen this ticket. |
👍 Also feel free to clone and run my demo to see it for yourself. Maybe it will be more obvious to you. |
Any updates on this? All examples of choropleth from https://plot.ly/javascript/choropleth-maps generates multiple messages:
My version of Chrome is 66. The messages are generated when I double click on any country. |
Also wondering the status of this! |
Also wondering the status of this! |
also wondering |
Blocked by mikolalysenko/mouse-wheel#7 |
This issue has been tagged with A community PR for this feature would certainly be welcome, but our experience is deeper features like this are difficult to complete without the Plotly maintainers leading the effort. Sponsorship range: $5k-$10k What Sponsorship includes:
Please include the link to this issue when contacting us to discuss. |
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson |
First reported https://community.plot.ly/t/violation-at-console/4518/7
To see it, open up https://codepen.io/etpinard/pen/ZyLQYy and turn on Verbose mode
The error message points to this line in
dragbox.js
.Observed in Chrome 59 and 58.
Anyone know what this is about?
The text was updated successfully, but these errors were encountered: