fix(ui): correct horizontal drag direction in 360 panorama viewer

The panorama viewer inverted horizontal drag relative to vertical: the
yaw sign was opposite, so dragging right turned the view right instead
of moving the scene right. Flip yaw to match the pitch convention
(drag the world) and lock the behavior with a ui-workspace scenario.
This commit is contained in:
iu
2026-10-11 21:02:01 +03:00
parent a72d8876d6
commit 6528abad82
5 changed files with 89 additions and 1 deletions
@@ -0,0 +1,15 @@
# Tasks
## 1. Fix horizontal drag direction
- [x] 1.1 In `frontend/src/lib/components/PanoViewer.svelte` `onPointerMove`, change `yaw -= dx * k` to `yaw += dx * k` so dragging right moves the scene right, consistent with the vertical drag; verify by opening a `pano360` photo and dragging right — the scene moves right while vertical behavior is unchanged.
- [x] 1.2 Confirm the change does not alter `pitch` handling or the wheel/reset behavior; verify with `npm run check`.
## 2. Integration verification
- [x] 2.1 Run `npm run check` and `npm run build` (frontend); verify both pass with no regressions.
## Workflow follow-up
- Run `/opsx-apply` to implement this change.
- Archive the change after review and verification (sync the delta spec into `ui-workspace`).