mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
InputHandler.checkBoundsRect was incorrectly assigning a property in Sprites fixed to the camera being dragged left (thanks @CraigBeswetherick #1093)
This commit is contained in:
parent
7bfa6fa9f2
commit
ccc8369f43
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue