diff --git a/src/file_editor.rs b/src/file_editor.rs index 952a015..251ca02 100644 --- a/src/file_editor.rs +++ b/src/file_editor.rs @@ -170,7 +170,7 @@ impl FileEditor { dragger_rect.set_height(item_response.response.rect.height()); // Controls for moving the buffer item - ui.allocate_new_ui( + ui.scope_builder( UiBuilder::new() .max_rect(dragger_rect) .layout(Layout::top_down(Align::Center)),