Fix panel drag leaking through overlay (#10035)
Closes #10017. While reworking the `overlay` element in #9911, I did not realize that all overlay elements called `defer_draw` with a priority of `1`. /cc @as-cii Not including release notes, since it was only present in nightly. Release Notes: - N/A
This commit is contained in:
parent
5602593089
commit
c126fdb616
9 changed files with 33 additions and 16 deletions
|
@ -182,8 +182,9 @@ impl<M: ManagedView> Element for PopoverMenu<M> {
|
|||
this.resolved_attach().corner(child_bounds) + this.resolved_offset(cx),
|
||||
);
|
||||
}
|
||||
let mut element =
|
||||
deferred(anchored.child(div().occlude().child(menu.clone()))).into_any();
|
||||
let mut element = deferred(anchored.child(div().occlude().child(menu.clone())))
|
||||
.with_priority(1)
|
||||
.into_any();
|
||||
|
||||
menu_layout_id = Some(element.before_layout(cx));
|
||||
element
|
||||
|
|
|
@ -110,8 +110,9 @@ impl<M: ManagedView> Element for RightClickMenu<M> {
|
|||
}
|
||||
anchored = anchored.position(*element_state.position.borrow());
|
||||
|
||||
let mut element =
|
||||
deferred(anchored.child(div().occlude().child(menu.clone()))).into_any();
|
||||
let mut element = deferred(anchored.child(div().occlude().child(menu.clone())))
|
||||
.with_priority(1)
|
||||
.into_any();
|
||||
|
||||
menu_layout_id = Some(element.before_layout(cx));
|
||||
element
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue