Use layers to correct mouse event handling too

This commit is contained in:
Conrad Irwin 2023-11-28 00:07:26 -07:00
parent 17b5f9294c
commit ca0dcf741f
3 changed files with 72 additions and 36 deletions

View file

@ -114,7 +114,6 @@ impl<D: PickerDelegate> Picker<D> {
}
fn cancel(&mut self, _: &menu::Cancel, cx: &mut ViewContext<Self>) {
dbg!("canceling!");
self.delegate.dismissed(cx);
}