🐛 Fix render stroke caps on drag (#10634)

This commit is contained in:
Elena Torró 2026-07-10 12:33:59 +02:00 committed by GitHub
parent 2c15dcdb84
commit a006a12ab6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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