-
Notifications
You must be signed in to change notification settings - Fork 59
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
passive event handler #98
Comments
I'm unable to reproduce this on the latest version of Microsoft Edge with the latest version of Coloris. What versions were you testing? In any case, some non-passive touch events are necessary to make the color picker work on mobile devices. |
Hello. I got the message at Edge Version 112.0.1722.64 |
Again, I am unable to reproduce this warning on Edge version 112.0.1722.68 with the latest version of Coloris. Could you describe the steps to reproduce the issue? |
Any update on this? |
Hello,
I checked it again and I noticed that the violation error doesn't occur every time.
I got the error like in the attached screenshot and after 2 site refreshs it doesn't occur again.
greetings
Gesendet: Freitag, 12. Mai 2023 um 12:55 Uhr
Von: "Momo Bassit" ***@***.***>
An: "mdbassit/Coloris" ***@***.***>
Cc: "Raik" ***@***.***>, "Author" ***@***.***>
Betreff: Re: [mdbassit/Coloris] passive event handler (Issue #98)
Any update on this?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Could you put a link to the page where this warning occurs? |
I'm closing this for inactivity. |
Thank you for reporting this. |
Hey @mdbassit 👋 Of course, attached a screen recording. I am using But I just checked it with a friend who has a company managed laptop with Chrome v114.x.x there I did not see the warning. So it could also be his chrome://flags configured to prevent such warnings since it's managed by a company admin.. Hope this helps 🙌 Screen.Recording.2023-06-05.at.15.31.54.mov |
That helps a lot. Thank you so much. I will investigate this further. |
Hello,
can you update your lib to prevent the following verbose message in edge browser?
coloris.min.js:6 [Violation]Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
I'm not deep enough into the topic, but I was able to eliminate the message with the following change:
e.addEventListener(t, l)
becomes:
e.addEventListener(t, l, { passive: true})
The text was updated successfully, but these errors were encountered: