Fix overlay in titlebar when initiating drag

This commit is contained in:
Cory Forsstrom 2021-07-27 15:25:28 -07:00
parent 4994d34aba
commit 2a49e415d2

View file

@ -452,24 +452,20 @@ where
_ => {} _ => {}
} }
if self.state.picked_pane().is_none() { self.elements
self.elements .iter_mut()
.iter_mut() .zip(layout.children())
.zip(layout.children()) .map(|((_, pane), layout)| {
.map(|((_, pane), layout)| { pane.on_event(
pane.on_event( event.clone(),
event.clone(), layout,
layout, cursor_position,
cursor_position, renderer,
renderer, clipboard,
clipboard, messages,
messages, )
) })
}) .fold(event_status, event::Status::merge)
.fold(event_status, event::Status::merge)
} else {
event::Status::Captured
}
} }
fn draw( fn draw(