Skip to content

Commit

Permalink
Improve scrolling to selection
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxxcode committed Jan 29, 2024
1 parent 814db2b commit 5f2c8eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ impl FileDialog {

if selected && self.scroll_to_selection {
response.scroll_to_me(Some(egui::Align::Center));
self.scroll_to_selection = false;
}

if response.clicked() {
Expand All @@ -457,6 +456,7 @@ impl FileDialog {
}
}

self.scroll_to_selection = false;
self.directory_content = data;

if let Some(path) = self.create_directory_dialog.update(ui).directory() {
Expand Down

0 comments on commit 5f2c8eb

Please sign in to comment.