mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-31 21:36:26 +00:00
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,8 +808,16 @@ impl<'a> WindowContext<'a> {
|
|||
break;
|
||||
}
|
||||
|
||||
if bounds.contains(point) && !opaque_level.starts_with(level) {
|
||||
return false;
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
true
|
||||
|
|
Loading…
Reference in a new issue