From ccc8369f437ba91e92ec0f0ef1ef60ec338c71f3 Mon Sep 17 00:00:00 2001 From: photonstorm Date: Thu, 28 Aug 2014 01:29:23 +0100 Subject: [PATCH] InputHandler.checkBoundsRect was incorrectly assigning a property in Sprites fixed to the camera being dragged left (thanks @CraigBeswetherick #1093) --- README.md | 1 + src/input/InputHandler.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a9c45e637..4b79bc8e4 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ Version 2.1.0 - "Cairhien" - -in development- * Group.swap() updates the Z index values properly (thanks @Blank101 #1090) * Device now recognises ChromeOS as a desktop (thanks @alvinsight @hilts-vaughan #1091) * Fixed Point.rotate bug (thanks @gamedolphin #1107) +* InputHandler.checkBoundsRect was incorrectly assigning a property in Sprites fixed to the camera being dragged left (thanks @CraigBeswetherick #1093) ### p2.js 0.6.0 Changes and New Features diff --git a/src/input/InputHandler.js b/src/input/InputHandler.js index c0795e9a0..8a3c11c7d 100644 --- a/src/input/InputHandler.js +++ b/src/input/InputHandler.js @@ -1368,7 +1368,7 @@ Phaser.InputHandler.prototype = { { if (this.sprite.cameraOffset.x < this.boundsRect.left) { - this.sprite.cameraOffset.x = this.boundsRect.cameraOffset.x; + this.sprite.cameraOffset.x = this.boundsRect.left; } else if ((this.sprite.cameraOffset.x + this.sprite.width) > this.boundsRect.right) {