tower / commit
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()