Break content mask for hoverables

This commit is contained in:
Conrad Irwin 2023-11-27 11:43:14 -07:00
parent e9e621518f
commit 7a8aba329b
3 changed files with 29 additions and 5 deletions

View file

@ -144,9 +144,11 @@ impl Element for Overlay {
}
cx.with_element_offset(desired.origin - bounds.origin, |cx| {
for child in self.children {
child.paint(cx);
}
cx.break_content_mask(|cx| {
for child in self.children {
child.paint(cx);
}
})
})
}
}