fix bug where scrollX and scrollY wouldn't be set

This commit is contained in:
Bill Reed 2019-03-09 13:34:07 -05:00 committed by GitHub
parent 0c12d836a2
commit 22f14ed6dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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