Skip to content

Commit

Permalink
fix: only preventDefault if event is cancelable (#7063)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckybonist authored Jan 25, 2021
1 parent ed3c54d commit b13cb07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -2023,7 +2023,9 @@ class Player extends Component {
*/
handleTechTouchEnd_(event) {
// Stop the mouse events from also happening
event.preventDefault();
if (event.cancelable) {
event.preventDefault();
}
}

/**
Expand Down

0 comments on commit b13cb07

Please sign in to comment.