update vintage theme

This commit is contained in:
evanpelle
2024-08-24 11:32:19 -07:00
parent 4a409c3578
commit a9785741b7
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ export class GameRenderer {
this.scale /= zoomFactor;
// Clamp the scale to prevent extreme zooming
this.scale = Math.max(0.1, Math.min(15, this.scale));
this.scale = Math.max(0.5, Math.min(20, this.scale));
const canvasRect = this.canvas.getBoundingClientRect();
const canvasX = event.x - canvasRect.left;