Skip to content

Commit

Permalink
Don't resize the display on window.resize events if we are playing ba…
Browse files Browse the repository at this point in the history
…ck input events. See #37
  • Loading branch information
jonathanolson committed Feb 2, 2017
1 parent 832ec36 commit 4c4536c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/Sim.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,13 @@ define( function( require ) {
// Fit to the window and render the initial scene
// Can't synchronously do this in Firefox, see https://github.com/phetsims/vegas/issues/55 and
// https://bugzilla.mozilla.org/show_bug.cgi?id=840412.
$( window ).resize( function() { self.resizePending = true; } );
$( window ).resize( function() {
// Don't resize on window size changes if we are playing back input events.
// See https://github.com/phetsims/joist/issues/37
if ( !phet.joist.playbackMode ) {
self.resizePending = true;
}
} );
this.resizeToWindow();

// Kick off checking for updates, if that is enabled
Expand Down

0 comments on commit 4c4536c

Please sign in to comment.