InputHandler.checkBoundsRect was incorrectly assigning a property in Sprites fixed to the camera being dragged left (thanks @CraigBeswetherick #1093)

This commit is contained in:
photonstorm 2014-08-28 01:29:23 +01:00
parent 7bfa6fa9f2
commit ccc8369f43
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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)
{