Ignore invisible layers for mouse events
This commit is contained in:
parent
da960fffe7
commit
17a80ca09b
1 changed files with 5 additions and 4 deletions
|
@ -890,10 +890,11 @@ impl Interactivity {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if style
|
if style.visibility == Visibility::Visible
|
||||||
.background
|
&& style
|
||||||
.as_ref()
|
.background
|
||||||
.is_some_and(|fill| fill.color().is_some())
|
.as_ref()
|
||||||
|
.is_some_and(|fill| fill.color().is_some())
|
||||||
{
|
{
|
||||||
cx.with_z_index(style.z_index.unwrap_or(0), |cx| cx.add_opaque_layer(bounds))
|
cx.with_z_index(style.z_index.unwrap_or(0), |cx| cx.add_opaque_layer(bounds))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue