We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 917dd06 commit b5ca183Copy full SHA for b5ca183
crates/yakui-core/src/paint/paint_dom.rs
@@ -96,6 +96,10 @@ impl PaintDom {
96
profiling::scope!("PaintDom::paint");
97
98
let layout_node = layout.get(id).unwrap();
99
+ if !layout_node.clip.intersects(&layout_node.rect) {
100
+ return;
101
+ }
102
+
103
self.current_clip = Rect::from_pos_size(
104
(layout_node.clip.pos() * self.scale_factor).round(),
105
(layout_node.clip.size() * self.scale_factor).round(),
0 commit comments