1
0
mirror of https://github.com/videojs/video.js.git synced 2025-02-04 11:43:27 +02:00

fix: only preventDefault if event is cancelable (#7063)

This commit is contained in:
KuanYu Chu 2021-01-26 00:55:46 +08:00 committed by GitHub
parent ed3c54d13a
commit b13cb07d5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2023,7 +2023,9 @@ class Player extends Component {
*/
handleTechTouchEnd_(event) {
// Stop the mouse events from also happening
event.preventDefault();
if (event.cancelable) {
event.preventDefault();
}
}
/**