From 9853077e4f6573931aee2a129e356853edb9322a Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Sat, 7 Nov 2020 12:40:20 +1100 Subject: [PATCH] Moved max map zoom to be based off of max grid size --- src/helpers/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/map.js b/src/helpers/map.js index a2101dc..8deeb70 100644 --- a/src/helpers/map.js +++ b/src/helpers/map.js @@ -161,7 +161,7 @@ export function getMapMaxZoom(map) { return 10; } // Return max grid size / 2 - return Math.max(Math.min(map.grid.size.x, map.grid.size.y) / 2, 5); + return Math.max(Math.max(map.grid.size.x, map.grid.size.y) / 2, 5); } export function snapNodeToMap(