Skip to content

Commit ccc8369

Browse files
committed
InputHandler.checkBoundsRect was incorrectly assigning a property in Sprites fixed to the camera being dragged left (thanks @CraigBeswetherick phaserjs#1093)
1 parent 7bfa6fa commit ccc8369

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ Version 2.1.0 - "Cairhien" - -in development-
9393
* Group.swap() updates the Z index values properly (thanks @Blank101 #1090)
9494
* Device now recognises ChromeOS as a desktop (thanks @alvinsight @hilts-vaughan #1091)
9595
* Fixed Point.rotate bug (thanks @gamedolphin #1107)
96+
* InputHandler.checkBoundsRect was incorrectly assigning a property in Sprites fixed to the camera being dragged left (thanks @CraigBeswetherick #1093)
9697

9798
### p2.js 0.6.0 Changes and New Features
9899

src/input/InputHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ Phaser.InputHandler.prototype = {
13681368
{
13691369
if (this.sprite.cameraOffset.x < this.boundsRect.left)
13701370
{
1371-
this.sprite.cameraOffset.x = this.boundsRect.cameraOffset.x;
1371+
this.sprite.cameraOffset.x = this.boundsRect.left;
13721372
}
13731373
else if ((this.sprite.cameraOffset.x + this.sprite.width) > this.boundsRect.right)
13741374
{

0 commit comments

Comments
 (0)