mirror of
https://github.com/photonstorm/phaser
synced 2025-02-25 20:07:08 +00:00
fix bug where scrollX and scrollY wouldn't be set
This commit is contained in:
parent
0c12d836a2
commit
22f14ed6dc
1 changed files with 4 additions and 4 deletions
|
@ -881,12 +881,12 @@ var Camera = new Class({
|
|||
|
||||
this.midPoint.set(fx, fy);
|
||||
|
||||
var scrollX = fx - originX;
|
||||
var scrollY = fy - originY;
|
||||
this.scrollX = fx - originX;
|
||||
this.scrollY = fy - originY;
|
||||
|
||||
if (this.useBounds) {
|
||||
this.clampX(scrollX);
|
||||
this.clampY(scrollY);
|
||||
this.scrollX = this.clampX(scrollX);
|
||||
this.scrollY = this.clampY(scrollY);
|
||||
}
|
||||
|
||||
return this;
|
||||
|
|
Loading…
Add table
Reference in a new issue