Repository navigation
3D viewer: panning and a mouse setting (#459) - #461
Merged
Merged
Conversation
Version 0.2.13 in Cargo.toml, desktop/Cargo.toml, desktop/tauri.conf.json and the book's doxygen.js; both lock files follow (workspace packages only). CHANGELOG: the Unreleased entries become 0.2.13 (2026-11-22), compare links added. Upgrade guide: row v0.2.12 -> v0.2.13 (migration 0078, file_versions.properties). CLAUDE.md names the current version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clippy 1.100 refuses &[x.clone()] for a one-element slice (cloned_ref_to_slice_refs); five places in the tests of desktop/src/localchanges.rs (#416) failed the desktop jobs on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every drag only rotated. The viewer now pans: right or middle drag, Shift or Ctrl + drag, both buttons held, two fingers, Shift + arrow keys; Reset view centres the model again (home keeps the centre). pan() moves the point the view turns around along the screen at its depth, within four model radii of the model's centre. A Mouse setting below the view picks the scheme (left/right/middle drag rotates, Shift + middle pans or rotates), stored per browser in localStorage; Shift/Ctrl + left and both buttons pan in every scheme. dragAction() is pure and exported; scripts/viewer-input.test.mjs tests every scheme (CI job ui). Right and middle drags open no context menu and start no autoscroll; only a left click picks a measure point. Docs: guide/files.md (pan, the setting as a table), guide/desktop.md, the hints of the viewer page and the desktop 3D tab, CHANGELOG. Closes #459 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #459
The 3D viewer (shared by the web UI and the desktop app) had no panning: every one-pointer drag called
rotate(), two fingers only zoomed – so no button combination could move the model sideways.Panning
pan()moves the point the view turns around along the screen at its depth, so the model follows the pointer; it stays within four model radii of the model's centre, so the model cannot be lost. Reset view / double-click centres it again (homekeeps the centre).Mouse setting (below the view, next to Measure; stored per browser/app in
localStorage,teamcraft-viewer-mouse):In every scheme, Shift/Ctrl + left drag and left + right pan – the combinations the issue tried.
Tests:
dragAction()is pure and exported;scripts/viewer-input.test.mjschecks every scheme and the shared combinations (new step in the desktop workflow'suijob).Docs:
docs/src/guide/files.md(panning, the setting as a table),docs/src/guide/desktop.md, the hints of the viewer page and the desktop 3D viewer tab, CHANGELOG.Not run locally (no Node here) – the
uijob runs the new test; please try a pan with an E57 cloud once.🤖 Generated with Claude Code