mirror of
https://github.com/penpot/penpot.git
synced 2026-09-10 22:19:19 +00:00
🐛 Fix frame inner strokes ignoring focus mode in wasm renderer
This commit is contained in:
parent
e0a44eede0
commit
becba0a82b
@ -2584,8 +2584,11 @@ impl RenderState {
|
|||||||
|
|
||||||
// Strokes are drawn over children for clipped frames (all strokes), and for non-clipped
|
// Strokes are drawn over children for clipped frames (all strokes), and for non-clipped
|
||||||
// frames with inner strokes (inner strokes only — non-inner were rendered before children).
|
// frames with inner strokes (inner strokes only — non-inner were rendered before children).
|
||||||
let needs_exit_strokes = element.clip()
|
// Skip when focus mode excludes this subtree (focus_mode.exit runs after this, so
|
||||||
|| (matches!(element.shape_type, Type::Frame(_)) && element.has_inner_stroke());
|
// is_active() still reflects this element's focus state here).
|
||||||
|
let needs_exit_strokes = self.focus_mode.is_active()
|
||||||
|
&& (element.clip()
|
||||||
|
|| (matches!(element.shape_type, Type::Frame(_)) && element.has_inner_stroke()));
|
||||||
|
|
||||||
if needs_exit_strokes {
|
if needs_exit_strokes {
|
||||||
let mut element_strokes: Cow<Shape> = Cow::Borrowed(element);
|
let mut element_strokes: Cow<Shape> = Cow::Borrowed(element);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user