From 4cd9afe67c6d67096452ea480230adfcad8b552c Mon Sep 17 00:00:00 2001 From: nevarem <349680237+nevarem@users.noreply.github.com> Date: Thu, 29 Oct 2026 17:17:03 +0800 Subject: [PATCH 1/4] Selection: a press where a mask hides a selected object's art grabs it An image in a clipping mask, picked in the Layers panel, shows its whole frame, but a press on the part the mask hides hit nothing: the Selection, Direct Selection and Group Selection tools started a marquee there, which dropped the selection, so the image could be dragged only by the part that shows. Such a press now grabs the selection by that art, as a press on its visible part does: a drag moves the selected object (the image, not its clip group) and a click keeps it selected. With nothing of it selected there, or with Shift, a press there starts a marquee as before. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EjfPR4a1jPek7r3nyFFNYv --- crates/doc/src/hit.rs | 30 +++++++++++++++++++++++ crates/doc/src/hit/tests.rs | 42 ++++++++++++++++++++++++++++++++ crates/tools/src/direct.rs | 19 ++++++++++++++- crates/tools/src/direct/tests.rs | 27 ++++++++++++++++++++ crates/tools/src/select.rs | 15 ++++++++++-- crates/tools/src/select/tests.rs | 40 ++++++++++++++++++++++++++++++ 6 files changed, 170 insertions(+), 3 deletions(-) diff --git a/crates/doc/src/hit.rs b/crates/doc/src/hit.rs index d93f923d3..705842c39 100644 --- a/crates/doc/src/hit.rs +++ b/crates/doc/src/hit.rs @@ -110,6 +110,36 @@ pub fn hit_test_visible(doc: &Document, p: Point, opt: HitOptions) -> Option