question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Non-passive event listener chrome warnings

See original GitHub issue

Hi,

We’re seeing some warnings appear in chrome when using this module. The warnings are viewable on https://player.vimeo.com/api/demo in chrome v80.

Can the listeners be made passive or are the non passive event listeners required? Screenshot 2020-04-03 at 16 14 50

player.js:10 [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
Kf.addEvent @ player.js:10
Kf.addEvent @ player.js:10
$f @ player.js:10
Kf.on @ player.js:10
Ct @ player.js:10
ov @ player.js:10
(anonymous) @ player.js:10
initializationHandler @ player.js:10
(anonymous) @ player.js:10
player.js:10 [Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
Kf.addEvent @ player.js:10
Kf.addEvent @ player.js:10
$f @ player.js:10
Kf.on @ player.js:10
(anonymous) @ player.js:10
av @ player.js:10
(anonymous) @ player.js:10
initializationHandler @ player.js:10
(anonymous) @ player.js:10
player.js:10 [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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
brown2020commented, Jul 20, 2022

This issue is back with the Vimeo player:

Screen Shot 2022-07-20 at 8 59 31 AM
0reactions
luwescommented, Oct 13, 2020

we released a fix with explicit passive properties for the events. looks like this is resolved 🎉 please let us know if you see any issues

Read more comments on GitHub >

github_iconTop Results From Across the Web

Non-passive event listener warning in Chrome console - v6
I am using React with a custom component to mount/unmount CodeMirror to the page. I don't think that would be the issue, but...
Read more >
"Added non-passive event listener" ... warning in Chrome #5534
In chrome, the following warnings are raised in the console: Added non-passive event listener to a scroll-blocking 'touchstart' event.
Read more >
Bing maps violation in Chrome (non-passive event listener to ...
Consider marking event handler as 'passive' to make the page more responsive. It makes any website having any map refresh slower and slower....
Read more >
Chrome warning about non-passive event listener for wheel ...
It's possible that making this listener passive will cause other problems with babylon's camera input management, or perhaps not be backwards ...
Read more >
Warning: Added non-passive event listener to a scroll ...
Closed 4 years ago. I am getting a weird warning while opening the application in chrome.I don't know how to get rid of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found