mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-15 03:01:52 +00:00
Make zoom levels power-of-2 with variable divider fix
This commit is contained in:
parent
a1148b254f
commit
55a48d7f15
@ -529,6 +529,7 @@ export class Camera extends BasicSerializableObject {
|
||||
assert(Number.isFinite(this.zoomLevel), "Got invalid zoom level *after* wheel: " + this.zoomLevel);
|
||||
|
||||
this.clampZoomLevel();
|
||||
this.desiredZoom = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user