Skip to content

Commit a7124cb

Browse files
committed
Swapped back to camera.screenView as that's the correct check for inCamera.
1 parent 971f69c commit a7124cb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/gameobjects/Image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ Object.defineProperty(Phaser.Image.prototype, "inCamera", {
462462

463463
get: function() {
464464

465-
return this.game.world.camera.view.intersects(this.getBounds());
465+
return this.game.world.camera.screenView.intersects(this.getBounds());
466466

467467
}
468468

src/gameobjects/Sprite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ Object.defineProperty(Phaser.Sprite.prototype, "inCamera", {
927927

928928
get: function() {
929929

930-
return this.game.world.camera.view.intersects(this.getBounds());
930+
return this.game.world.camera.screenView.intersects(this.getBounds());
931931

932932
}
933933

0 commit comments

Comments
 (0)