Skip to content

Commit 3102ad5

Browse files
committed
Swapped the order of the Camera.view floor to avoid the 1px jitter effect on the right of maps.
1 parent d72117a commit 3102ad5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/Camera.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,11 @@ Phaser.Camera.prototype = {
224224
this.checkBounds();
225225
}
226226

227+
this.view.floor();
228+
227229
this.displayObject.position.x = -this.view.x;
228230
this.displayObject.position.y = -this.view.y;
229231

230-
this.view.floor();
231-
232232
},
233233

234234
/**

0 commit comments

Comments
 (0)