Skip to content

Viewport: with Orbit, Pan or Zoom lit, a press held still keeps the highlight under it (#8864) - #8898

Merged
bherbruck merged 2 commits into
tangency-labs:mainfrom
austin62jake:lit-mode-hold-keeps-hover
Oct 29, 2026
Merged

bherbruck merged 2 commits into
tangency-labs:mainfrom
austin62jake:lit-mode-hold-keeps-hover

Conversation

@austin62jake

@austin62jake austin62jake commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

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, since mode is 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 (in select_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, on main at 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, and cargo xtask lists, 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.drag with the same start and end and hold: 120; it queues its events, so ui.selection and a screenshot sent right after it land while the button is down). Mid-hold, ui.selection reports the hovered SketchCurve and the line is drawn lit. Then Select Other opens with Line 1 and Line 2.

    Orbit lit: hover, press held still with the line lit, then Select Other

Integration status

Branched from main at 3e01081. None of the open PRs that change viewport.rs changes this condition. #5577, #6326, #6939 and #7989 also change select_other_tests.rs.

🤖 Generated with Claude Code

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
austin62jake marked this pull request as ready for review October 29, 2026 15:59
@bherbruck bherbruck added approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) ready to merge reviewed, every ask addressed; merge once CI is green labels Oct 29, 2026
@bherbruck
bherbruck enabled auto-merge October 29, 2026 16:15
@bherbruck bherbruck added approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) and removed approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) labels Oct 29, 2026
@bherbruck
bherbruck added this pull request to the merge queue Oct 29, 2026
Merged via the queue into tangency-labs:main with commit e5ef3ba Oct 29, 2026
104 of 116 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) ready to merge reviewed, every ask addressed; merge once CI is green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

With Orbit, Pan or Zoom lit, a still press on geometry unlights it during the Select Other hold

3 participants