From 38e708c0ed5c09ad3669e580e2c09c08f1084e8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9sz=C3=A1ros=20Gergely?= Date: Wed, 20 Apr 2022 10:25:01 +0200 Subject: [PATCH] Shift first - rotate later --- modules/ui/submap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/submap.js b/modules/ui/submap.js index 1fefbffa..1b5382cd 100644 --- a/modules/ui/submap.js +++ b/modules/ui/submap.js @@ -64,8 +64,8 @@ window.UISubmap = (function () { let projection, inverse; if (angle || shiftX || shiftY) { - projection = app(rot(angle), shift(shiftX, shiftY)); - inverse = app(shift(-shiftX, -shiftY), rot(-angle)); + projection = app(shift(shiftX, shiftY), rot(angle)); + inverse = app(rot(-angle), shift(-shiftX, -shiftY)); } else { projection = (x, y) => [x, y]; inverse = (x, y) => [x, y];