fuzzyworld

tower / commit

fix(ui): flip swipe directions

d5b08a62f4f491950851c142a3524d3768bff74b · Pavel Safronov · 2026-09-08 16:37:44 -0700 · parents 37a25a7f9859

fix(ui): flip swipe directions
 src/views/interior.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/views/interior.ts b/src/views/interior.ts
index 6650c5e..d56970c 100644
--- a/src/views/interior.ts
+++ b/src/views/interior.ts
@@ -1098,8 +1098,8 @@ export class InteriorView {
       this.lastPointer = { x: e.clientX, y: e.clientY }
       // Scale with the field of view, so zoomed in does not mean flung around.
       const rate = (this.fovDeg / 60) * 0.0032
-      this.yaw -= dx * rate
-      this.pitch = Math.max(-1.55, Math.min(1.55, this.pitch + dy * rate))
+      this.yaw += dx * rate
+      this.pitch = Math.max(-1.55, Math.min(1.55, this.pitch - dy * rate))
       this.place()
       this.cb.onLook()
       this.queueSave()