Skip to content

Commit

Permalink
Tweak resizing for mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
lidavidm committed May 6, 2018
1 parent 34a530a commit 79b7290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stage/basestage.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ export default class BaseStage {
this.ctx.scale(1.0, 1.0);
this._height = window.innerHeight - 40;
if (window.matchMedia("only screen and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 1.5)").matches) {
this._width = window.innerWidth - 150;
this._width = window.innerWidth;
}
else if (window.matchMedia("only screen and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 1.5)").matches) {
this._width = 0.9 * window.innerWidth;
this._width = window.innerWidth;
}
else {
this._width = Math.max(window.innerWidth, 1200);
Expand Down

0 comments on commit 79b7290

Please sign in to comment.