Browse Source

Merge branch '86-fix-browser-zoom-hack' into 'staging'

Fixes #86

See merge request !43
tags/v0.1.2^2
Big Bad Waffle 7 years ago
parent
commit
96e93e80d9
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/client/js/renderer.js

+ 4
- 2
src/client/js/renderer.js View File

@@ -181,8 +181,10 @@ define([
},

onResize: function() {
this.width = $('body').width();
this.height = $('body').height();
var zoom = window.devicePixelRatio;

this.width = $('body').width() * zoom;
this.height = $('body').height() * zoom;

this.renderer.resize(this.width, this.height);
if (window.player) {


Loading…
Cancel
Save