Skip to content

Commit

Permalink
fix(UI): Fix the scrolling when scrolling from the laterals when seek…
Browse files Browse the repository at this point in the history
…OnTaps is enabled (#6050)

Fixes #6027
  • Loading branch information
avelad committed Jan 9, 2024
1 parent ce8792d commit 4564233
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/hidden_seek_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ shaka.ui.HiddenSeekButton = class extends shaka.ui.Element {
this.seekContainer = shaka.util.Dom.createHTMLElement('div');
this.parent.appendChild(this.seekContainer);

this.eventManager.listen(this.seekContainer, 'touchstart', (event) => {
this.eventManager.listen(this.seekContainer, 'touchend', (event) => {
// Do nothing if the controls are not visible
if (!this.controls.isOpaque()) {
return;
}
// In case any settings menu are open this assigns the first touch
// to close the menu.
if (this.controls.anySettingsMenusAreOpen()) {
Expand Down

0 comments on commit 4564233

Please sign in to comment.