summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Cory Forsstrom <cory.forsstrom@lich.io>2021-07-27 15:25:28 -0700
committerLibravatar Cory Forsstrom <cory.forsstrom@lich.io>2021-07-27 15:25:28 -0700
commit2a49e415d262f76eb699d48a58b767578d68b516 (patch)
treeab05d5c1ad25a85ca931af69f0d7916d7d993e92
parent4994d34abab3222f9a8fd7a9a3e63f969ca97ffc (diff)
downloadiced-2a49e415d262f76eb699d48a58b767578d68b516.tar.gz
iced-2a49e415d262f76eb699d48a58b767578d68b516.tar.bz2
iced-2a49e415d262f76eb699d48a58b767578d68b516.zip
Fix overlay in titlebar when initiating drag
-rw-r--r--native/src/widget/pane_grid.rs32
1 files changed, 14 insertions, 18 deletions
diff --git a/native/src/widget/pane_grid.rs b/native/src/widget/pane_grid.rs
index b72172cc..e073d42e 100644
--- a/native/src/widget/pane_grid.rs
+++ b/native/src/widget/pane_grid.rs
@@ -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(