Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 97f2255

Browse files
authoredFeb 27, 2025
fix(UI): Use touchend to show the controls (shaka-project#8180)
Fixes shaka-project#8164
1 parent 34c3b72 commit 97f2255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎ui/controls.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -958,9 +958,9 @@ shaka.ui.Controls = class extends shaka.util.FakeEventTarget {
958958
// setEnabledShakaControls:
959959
this.videoContainer_.setAttribute('shaka-controls', 'true');
960960

961-
this.eventManager_.listen(this.controlsContainer_, 'touchstart', (e) => {
961+
this.eventManager_.listen(this.controlsContainer_, 'touchend', (e) => {
962962
this.onContainerTouch_(e);
963-
}, {passive: false});
963+
});
964964

965965
this.eventManager_.listen(this.controlsContainer_, 'click', () => {
966966
this.onContainerClick_();

0 commit comments

Comments
 (0)
Please sign in to comment.