From a006a12ab6929804af918ec1f5c845d0aeab8b51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elena=20Torr=C3=B3?= Date: Fri, 10 Jul 2026 12:33:59 +0200 Subject: [PATCH] :bug: Fix render stroke caps on drag (#10634) --- render-wasm/src/shapes.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/render-wasm/src/shapes.rs b/render-wasm/src/shapes.rs index 92d49c7c30..5dfbe9e384 100644 --- a/render-wasm/src/shapes.rs +++ b/render-wasm/src/shapes.rs @@ -1132,6 +1132,10 @@ impl Shape { .fold(0.0, f32::max) } + pub fn has_cap_bounds(&self) -> bool { + self.cap_bounds_margin() > 0.0 + } + pub fn mask_id(&self) -> Option<&Uuid> { self.children.first() } @@ -1452,7 +1456,8 @@ impl Shape { } } - self.blur.is_none() + !self.has_cap_bounds() + && self.blur.is_none() && self.background_blur.is_none() && self.shadows.is_empty() && (self.opacity - 1.0).abs() <= 1e-4