Unfocus Pane in pane_grid on click outbounds
This commit is contained in:
parent
23f753e599
commit
cee8400663
1 changed files with 2 additions and 2 deletions
|
|
@ -273,8 +273,6 @@ impl<'a, Message, Renderer> PaneGrid<'a, Message, Renderer> {
|
|||
self.state.focus(pane);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
self.state.unfocus();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -482,6 +480,8 @@ where
|
|||
);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
self.state.unfocus();
|
||||
}
|
||||
}
|
||||
mouse::Event::ButtonReleased(mouse::Button::Left) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue