Use correct values in clamp calls.

This commit is contained in:
Bill Reed 2019-04-05 16:50:51 -04:00 committed by GitHub
parent 22f14ed6dc
commit 1293e427dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -885,8 +885,8 @@ var Camera = new Class({
this.scrollY = fy - originY;
if (this.useBounds) {
this.scrollX = this.clampX(scrollX);
this.scrollY = this.clampY(scrollY);
this.scrollX = this.clampX(this.scrollX);
this.scrollY = this.clampY(this.scrollY);
}
return this;