diff options
Diffstat (limited to 'native/src/widget')
| -rw-r--r-- | native/src/widget/pane_grid.rs | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/native/src/widget/pane_grid.rs b/native/src/widget/pane_grid.rs index 3df7b156..44028f5e 100644 --- a/native/src/widget/pane_grid.rs +++ b/native/src/widget/pane_grid.rs @@ -209,11 +209,10 @@ where          cursor_position: Point,          messages: &mut Vec<Message>,      ) { -        let mut clicked_region = self -            .elements -            .iter() -            .zip(layout.children()) -            .filter(|(_, layout)| layout.bounds().contains(cursor_position)); +        let mut clicked_region = +            self.elements.iter().zip(layout.children()).filter( +                |(_, layout)| layout.bounds().contains(cursor_position), +            );          if let Some(((pane, content), layout)) = clicked_region.next() {              if let Some(on_click) = &self.on_click { | 
