Browse Source

closes #1515

tags/v0.8.0
Shaun 3 years ago
parent
commit
7d8679f609
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/client/js/rendering/renderer.js

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

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

let stage = this.stage;
stage.x = -~~this.pos.x;
stage.y = -~~this.pos.y;
if (window.staticCamera !== true) {
stage.x = -~~this.pos.x;
stage.y = -~~this.pos.y;
}

let halfScale = scale / 2;
if (Math.abs(stage.x - this.lastUpdatePos.x) > halfScale || Math.abs(stage.y - this.lastUpdatePos.y) > halfScale)


Loading…
Cancel
Save