-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Chrome on Android logs error about preventDefault inside passive event listener when scrubbing #4650
Comments
i have the same problem on mobile with videojs 6.2.1. if it's done , please mark me. Thanks. |
I can confirm this behaviour in the Chrome Developer Tools - Responsive Mode. |
Same problem here. |
Same, version 6.8.0. This needs to be fixed! |
STILL EXISTS in "video.js": "^7.6.0",
|
Hi @BonBonSlick , you found a fix ? im getting the same issue now. with "video.js": "7.12.3", fast forward the video, but in mobile this does not work. |
Hi |
Description
Chrome on Android logs the following error in the browser console when the user starts scrubbing: "Unable to preventDefault inside passive event listener invocation."
JSBin (In case JSBin is unavailable: simply set up a starter template and use the latest version of video.js)
Steps to reproduce
Explain in detail the exact steps necessary to reproduce the issue.
Results
Expected
No errors are logged to the browser console.
Actual
The browser console shows multiple errors with the message: "Unable to preventDefault inside passive event listener invocation."
Error output
Additional Information
It appears that
Slider.handleMouseDown
is registered as a passive event listener fortouchstart
, but still callsevent.preventDefault()
.Fortunately, this doesn't break the player: Chrome simply logs an error but continues executing the rest of the code. It would be nice if video.js could avoid logging these errors though. 😄
versions
videojs
browsers
OSes
plugins
None
The text was updated successfully, but these errors were encountered: