Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/js/big-play-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
handleClick(event) {
const playPromise = this.player_.play();

// exit early if clicked via the mouse
if (this.mouseused_ && 'clientX' in event && 'clientY' in event) {
// exit early if tapped or clicked via the mouse
if (event.type === 'tap' || this.mouseused_ && 'clientX' in event && 'clientY' in event) {

Check warning on line 50 in src/js/big-play-button.js

View check run for this annotation

Codecov / codecov/patch

src/js/big-play-button.js#L50

Added line #L50 was not covered by tests
silencePromise(playPromise);

if (this.player_.tech(true)) {
Expand Down