Unfocus Pane in pane_grid on click outbounds

This commit is contained in:
Héctor Ramón Jiménez 2020-06-30 01:01:08 +02:00
parent 23f753e599
commit cee8400663

View File

@ -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) => {