Skip to content

Commit 94f9c09

Browse files
this fixes the camera judders when following with float values.
1 parent a869939 commit 94f9c09

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
@@ -227,6 +227,8 @@ Phaser.Camera.prototype = {
227227
this.displayObject.position.x = -this.view.x;
228228
this.displayObject.position.y = -this.view.y;
229229

230+
this.view.floor();
231+
230232
},
231233

232234
/**
@@ -315,8 +317,6 @@ Phaser.Camera.prototype = {
315317
this.view.y = this.bounds.bottom - this.height;
316318
}
317319

318-
this.view.floor();
319-
320320
},
321321

322322
/**

0 commit comments

Comments
 (0)