1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Actually made arrow keys equal

hope this actually works
This commit is contained in:
EmeraldBlock 2020-09-28 17:45:37 -05:00 committed by GitHub
parent 436ba62548
commit 668dc80e26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -939,6 +939,7 @@ export class Camera extends BasicSerializableObject {
this.zoomLevel = this.zoomLevel * fade + this.desiredZoom * (1 - fade);
assert(Number.isFinite(this.zoomLevel), "Zoom level is NaN after fade: " + this.zoomLevel);
} else {
this.zoomLevel = this.desiredZoom;
this.desiredZoom = null;
}
}