fix pan controls

This commit is contained in:
j 2025-08-11 19:36:59 +02:00
commit 3c482989d1

View file

@ -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() {