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
.iter_mut()
.zip(layout.children())
.map(|((_, pane), layout)| {
pane.on_event(
event.clone(),
layout,
cursor_position,
renderer,
clipboard,
messages,
)
})
.fold(event_status, event::Status::merge)
} else {
event::Status::Captured
}
self.elements
.iter_mut()
.zip(layout.children())
.map(|((_, pane), layout)| {
pane.on_event(
event.clone(),
layout,
cursor_position,
renderer,
clipboard,
messages,
)
})
.fold(event_status, event::Status::merge)
}
fn draw(