From 3c482989d1ad8022d6f19fe84bca48ae2fafb915 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 11 Aug 2025 19:36:59 +0200 Subject: [PATCH] fix pan controls --- source/UI/js/Map/Map.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/UI/js/Map/Map.js b/source/UI/js/Map/Map.js index 9e5dc936..236654d5 100644 --- a/source/UI/js/Map/Map.js +++ b/source/UI/js/Map/Map.js @@ -1153,7 +1153,8 @@ Ox.Map = function(options, self) { } function pan(x, y) { - self.map.panBy(x * self.$map.width() / 2, y * self.$map.height() / 2); + console.log(x, y, self.$map.width()) + self.map.panBy([x * self.$map.width() / 2, y * self.$map.height() / 2]); }; function panToPlace() {