Skip to content

Commit 0940ae9

Browse files
committed
Only change focus from BPB if not tap or mouse click
References videojs#9006.
1 parent c7298d4 commit 0940ae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/js/big-play-button.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class BigPlayButton extends Button {
4646
handleClick(event) {
4747
const playPromise = this.player_.play();
4848

49-
// exit early if clicked via the mouse
50-
if (this.mouseused_ && 'clientX' in event && 'clientY' in event) {
49+
// exit early if tapped or clicked via the mouse
50+
if (event.type === 'tap' || this.mouseused_ && 'clientX' in event && 'clientY' in event) {
5151
silencePromise(playPromise);
5252

5353
if (this.player_.tech(true)) {

0 commit comments

Comments
 (0)