Skip to content

Commit

Permalink
Don't enter fullscreen on double click on bottom bar.
Browse files Browse the repository at this point in the history
Fixes #2053

Change-Id: I4779547ae2116d9cc4394c27aab33366ad36a6a6
  • Loading branch information
TheModMaker committed Aug 22, 2019
1 parent f068ec8 commit 267af6a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ui/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -781,8 +781,13 @@ shaka.ui.Controls.prototype.addEventListeners_ = function() {
// for focused elements.
this.eventManager_.listen(window, 'keydown', this.onKeyDown_.bind(this));

this.eventManager_.listen(this.controlsContainer_, 'dblclick',
() => this.toggleFullScreen());
this.eventManager_.listen(
this.controlsContainer_, 'dblclick', () => this.toggleFullScreen());

// If double-clicking on the bottom bar, don't allow the click to propagate
// to toggle fullscreen above.
this.eventManager_.listen(
this.bottomControls_, 'dblclick', (e) => e.stopPropagation());

this.eventManager_.listen(this.video_,
'play', this.onPlayStateChange_.bind(this));
Expand Down

0 comments on commit 267af6a

Please sign in to comment.