Ignore stacking order entry ids in was_top_layer
This commit is contained in:
parent
2c3d9805a4
commit
831769ce8c
1 changed files with 10 additions and 2 deletions
|
@ -808,10 +808,18 @@ impl<'a> WindowContext<'a> {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if bounds.contains(point) && !opaque_level.starts_with(level) {
|
if bounds.contains(point) {
|
||||||
|
let starts_with = opaque_level
|
||||||
|
.iter()
|
||||||
|
.zip(level.iter())
|
||||||
|
.all(|(a, b)| a.z_index == b.z_index)
|
||||||
|
&& opaque_level.len() >= level.len();
|
||||||
|
|
||||||
|
if !starts_with {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue