forked from shaka-project/shaka-player
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): Ignore seek touch events on hidden controls
When the controls are hidden, the seek bar should not respond to touch events. But since the seek bar is a child element of the controls panel, it receives the touchstart event before the controls do. So there is no good opportunity to stop the propagation of the event. I tried using the capturing phase of the event, but that didn't work. So instead, we let the seek bar know if the controls are shown, and if not, ignore touch and click events. Further, I changed the mouseup, touchmove, and touchend event handlers to ignore the events if the corresponding start event (mousedown or touchstart) was ignored. That way, you can't accidentally start a drag operation while the controls are hidden. Closes shaka-project#2888 Change-Id: I6ee393e3d631ad3d2a8f7314af692004240fb2bd
- Loading branch information
1 parent
5ebbaef
commit 5e559c3
Showing
2 changed files
with
28 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters