Skip to content

Move: clicking an axis arrow without dragging shows that axis in the value box (#13101) - #13167

Draft
dudedagger42 wants to merge 3 commits into
tangency-labs:mainfrom
dudedagger42:fix/move-click-axis-box
Draft

dudedagger42 wants to merge 3 commits into
tangency-labs:mainfrom
dudedagger42:fix/move-click-axis-box

Conversation

@dudedagger42

Copy link
Copy Markdown
Contributor

In Move, a click on the Y or Z arrow (or a ring in Free Move) that starts no drag left the canvas value box on X. Dragging an arrow already switched the box (#4776), but a press and release that arrive in one frame, as input queued while the window is busy does (#8265), never start a drag, so dialogs_move::drag was never called. gizmo::show now records a press on a handle that starts no drag, gizmo::take_click hands it out, and the Move canvas shows that handle's value with the same mapping drag() uses (now show_handle_value). A click moves nothing. Dragging is unchanged.

Changes a default: no

Fixes #13101

Tests: the first commits add a_click_on_an_arrow_puts_the_box_on_its_axis (X, Y and Z arrows with the press and release in separate frames, and Y and Z in one frame; the one-frame cases fail on main with the box on X) and the_box_reads_the_total_from_the_start (drags of +5 and +3 read 8 mm, typing 10 sets the total from the start; this already held and is pinned). The last commit is the fix. Ran cargo test -p solidcraft-ui-egui --lib -- dialogs_move::tests (29 pass).

🤖 Generated with Claude Code

dudedagger42 and others added 3 commits November 7, 2026 12:20
…(#GABE)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…abs#13101)

gizmo::show reports nothing until a drag starts, so a press and release that
arrive in one frame never reached dialogs_move::drag and the box stayed on X.
Record a press on a handle that starts no drag, and show its value in the box;
a click moves nothing.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions github-actions Bot added the area:ui desktop/web front end, dialogs, viewport label Nov 7, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ui desktop/web front end, dialogs, viewport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move: clicking an axis arrow without dragging leaves the value box on X

1 participant