mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-18 09:14:09 +00:00
increase max zoom out for mobile
This commit is contained in:
@@ -190,7 +190,7 @@ export class TransformHandler {
|
|||||||
this.scale /= zoomFactor;
|
this.scale /= zoomFactor;
|
||||||
|
|
||||||
// Clamp the scale to prevent extreme zooming
|
// 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 canvasRect = this.boundingRect();
|
||||||
const canvasX = event.x - canvasRect.left;
|
const canvasX = event.x - canvasRect.left;
|
||||||
|
|||||||
Reference in New Issue
Block a user