From 87fc61df79f98088ec0466a25be8fdf334d9b3c2 Mon Sep 17 00:00:00 2001 From: nevarem <349680237+nevarem@users.noreply.github.com> Date: Thu, 29 Oct 2026 19:18:39 +0800 Subject: [PATCH] Selection: a selected object's masked art is reached the way a click goes The check of a selected object's masked art looked at its own place only. A click goes down from the layer (or the isolated container) and never reaches a Shaper group's original shapes outside Construction mode, however deep the object lies in them; and below a layer whose Preview is off it hits art in outline. A press inside such a path's fill, or on a path in a Shaper group's hidden shapes, started a move. The way down to the selected object is now checked as a click goes: a Shaper group's part a click can't reach on it rules the object out, and a Preview-off layer on it (below the isolated container) makes the object count by its outline. Tests also cover Shift with Direct and Group Selection (a marquee) and an object a click hits over the masked art (it is selected). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EjfPR4a1jPek7r3nyFFNYv --- crates/doc/src/hit.rs | 26 +++++++++++++++++- crates/doc/src/hit/tests.rs | 45 ++++++++++++++++++++++++++++++++ crates/tools/src/direct/tests.rs | 7 +++++ crates/tools/src/select/tests.rs | 7 +++++ 4 files changed, 84 insertions(+), 1 deletion(-) diff --git a/crates/doc/src/hit.rs b/crates/doc/src/hit.rs index 120512a0f..837985874 100644 --- a/crates/doc/src/hit.rs +++ b/crates/doc/src/hit.rs @@ -116,7 +116,9 @@ pub fn hit_test_visible(doc: &Document, p: Point, opt: HitOptions) -> Option