Skip to content

#565: Route editor visual-selection drag through quadraui DragTarget::TextSelection (#508 part 3) - #569

Merged
JDonaghy merged 1 commit into
developfrom
issue-565-route-editor-visual-selection-drag-throu
Jul 10, 2026
Merged

#565: Route editor visual-selection drag through quadraui DragTarget::TextSelection (#508 part 3)#569
JDonaghy merged 1 commit into
developfrom
issue-565-route-editor-visual-selection-drag-throu

Conversation

@JDonaghy

Copy link
Copy Markdown
Owner

Closes #565

Automated merge from the coordinator for assignment a9dfe980c91d on issue #565.

Worker branch: issue-565-route-editor-visual-selection-drag-throudevelop.

…h quadraui DragTarget::TextSelection

Arms a DragTarget::TextSelection (region encoding the origin window id,
following the tui:editor:<id>:vsb/hsb scrollbar convention) at mouse-down
on an editor text area. The Drag(Left) handler now recovers the drag's
origin window from drag_state instead of the old bespoke mouse_text_drag
bool, and uses it to ignore drag events that cross into another split
before calling engine.mouse_drag — removing the mouse_text_drag bool and
its plumbing entirely.

The document-model hit-testing (window_zone_hit_test -> buf_line/col ->
engine.mouse_drag) and the engine's own mouse_drag_origin_window guard
are unchanged, kept as defense-in-depth (also covered directly by
test_mouse_drag_locked_to_origin_window, which calls engine.mouse_drag
without going through mouse.rs).

Adds unit tests for the new widget-id encode/decode helpers since
handle_mouse itself has no test harness in this codebase.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Route editor visual-selection drag through quadraui DragTarget::TextSelection (#508 part 3)

1 participant