Skip to content

Commit

Permalink
Switch to object with prop isFullscreen. Change isFullscreen always i…
Browse files Browse the repository at this point in the history
…f data exists
  • Loading branch information
gkatsev committed Jul 15, 2015
1 parent 77b3195 commit 01b16b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -976,8 +976,8 @@ class Player extends Component {
* @method handleTechFullscreenChange
*/
handleTechFullscreenChange(event, data) {
if (data && data === 'not-fullscreen') {
this.isFullscreen(false);
if (data) {
this.isFullscreen(data.isFullscreen);
}
this.trigger('fullscreenchange');
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/tech/html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class Html5 extends Tech {
if ('webkitDisplayingFullscreen' in video) {
this.one('webkitbeginfullscreen', function() {
this.one('webkitendfullscreen', function() {
this.trigger('fullscreenchange', 'not-fullscreen');
this.trigger('fullscreenchange', { isFullscreen: false });
});

this.trigger('fullscreenchange');
Expand Down

0 comments on commit 01b16b1

Please sign in to comment.