Repository navigation
Viewport: with Orbit, Pan or Zoom lit, a press held still keeps the highlight under it (#8864) - #8898
Merged
bherbruck merged 2 commits intoOct 29, 2026
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ighlight under it (tangency-labs#8864) A mode lit in the navigation bar, or a held Space, owns drags, not a still press (tangency-labs#8438), but the hover pick counted any left press under such a mode as navigation and dropped the highlight, so the line under a Select Other hold went dark until the list opened. Only a preset's left-button binding or Ctrl+left orbit navigates from the press on now; a lit mode's drag still drops the highlight once it starts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
austin62jake
marked this pull request as ready for review
October 29, 2026 15:59
bherbruck
enabled auto-merge
October 29, 2026 16:15
bherbruck
added this pull request to the merge queue
Oct 29, 2026
Merged
via the queue into
tangency-labs:main
with commit Oct 29, 2026
e5ef3ba
104 of 116 checks passed
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.
Fixes #8864
Change
A mode lit in the navigation bar (Orbit, Pan, Zoom), or a held Space, owns left drags, not a press held still: #8438 made such a hold open Select Other, as it does with no mode lit. But the viewport's hover pick still treated any left press under a lit mode as navigation (
viewport.rs:primary_nav.is_some() && primary_down), so the highlight under the pointer went dark on the press and stayed dark through the hold, until the list opened.The hover pick now counts a left press as navigation only for the bindings that navigate from the press on: a preset's left-button binding (Maya Alt, Alias Shift+Alt) or Ctrl+left orbit (
app.viewport.primary_nav, decided when the button goes down). That's the same split Select Other's hold already uses a few lines below. A lit mode's drag still turns the highlight off as soon as it starts, sincemodeis set from then on, and it stays off between pointer events, as before.Changes a default: no
Tests
select_other::tests::a_press_held_still_keeps_the_highlight_while_a_navigation_mode_is_lit(inselect_other_tests.rs, next to Select Other: a still hold opens the list while Orbit, Pan or Zoom is lit (#8437) #8438's tests): two lines on top of each other, with no mode lit, and with Orbit, Pan and Zoom lit. A real press held still keeps a line lit 10 frames in, and the list opens later. Without this change it fails with Orbit lit: no line is lit during the hold.viewport::tests::hover_stays_off_between_navigation_events_and_returns_on_release: its left-button case (Orbit lit) said the highlight goes off on the press. It now says the highlight stays on the press and on a move within click distance, goes off once the press drags (20 points), stays off between events, and comes back on release. The middle and right-button cases are unchanged. Without this change the new left-button checks fail.Validation
On Windows 10 x86_64,
--profile ci, onmainat 3e01081:cargo test -p solidcraft-ui-egui --lib: 3436 passed, 14 ignored.cargo clippy -p solidcraft-ui-egui --all-targets -- -D warnings,cargo fmt --all -- --check, andcargo xtasklists, layers, ui-containers and skills: pass.In the app (
target/ci/solidcraft.exe, fresh settings): a sketch with two lines on top of each other, Orbit lit from the navigation bar, the pointer on the lines. Then a press held still (ui.dragwith the same start and end andhold: 120; it queues its events, soui.selectionand a screenshot sent right after it land while the button is down). Mid-hold,ui.selectionreports the hoveredSketchCurveand the line is drawn lit. Then Select Other opens with Line 1 and Line 2.Integration status
Branched from
mainat 3e01081. None of the open PRs that changeviewport.rschanges this condition. #5577, #6326, #6939 and #7989 also changeselect_other_tests.rs.🤖 Generated with Claude Code