Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Player: Do not resize on FULLSCREEN event
Browse files Browse the repository at this point in the history
A fullscreen event does not say whether we need to resize
the video or not. A resize-event on the other hand does.
Only resize the video when we get a resize event.

Solves #93
  • Loading branch information
noseglid committed Dec 2, 2014
1 parent f937d90 commit 8e8352a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Player.as
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ package {
this.stage.doubleClickEnabled = true;
this.stage.addEventListener(MouseEvent.DOUBLE_CLICK, fullscreen);
this.stage.addEventListener(Event.FULLSCREEN, function(event:Event):void {
videoResize();
(StageDisplayState.NORMAL === stage.displayState) ? callAPI(EVENT_FULLSCREEN_EXITED) : callAPI(EVENT_FULLSCREEN_ENTERED);
});
this.stage.addEventListener(Event.RESIZE, function(event:Event):void {
Expand Down

0 comments on commit 8e8352a

Please sign in to comment.