mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 15:10:43 +00:00
increase max zoom out for mobile
This commit is contained in:
@@ -190,7 +190,7 @@ export class TransformHandler {
|
||||
this.scale /= zoomFactor;
|
||||
|
||||
// Clamp the scale to prevent extreme zooming
|
||||
this.scale = Math.max(0.5, Math.min(20, this.scale));
|
||||
this.scale = Math.max(0.2, Math.min(20, this.scale));
|
||||
|
||||
const canvasRect = this.boundingRect();
|
||||
const canvasX = event.x - canvasRect.left;
|
||||
|
||||
Reference in New Issue
Block a user