Skip to content

Commit

Permalink
Remove "drag-to-move-window" demo from egui_demo_app
Browse files Browse the repository at this point in the history
custom_window_frame is a better demo
  • Loading branch information
emilk committed Jan 18, 2024
1 parent 90d7524 commit 08fcca4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions crates/egui_demo_app/src/backend_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,15 +310,6 @@ fn integration_ui(ui: &mut egui::Ui, _frame: &mut eframe::Frame) {
ui.close_menu();
}
});

let fullscreen = ui.input(|i| i.viewport().fullscreen.unwrap_or(false));
if !fullscreen
&& ui
.button("Drag me to drag window")
.is_pointer_button_down_on()
{
ui.ctx().send_viewport_cmd(egui::ViewportCommand::StartDrag);
}
}
}

Expand Down

0 comments on commit 08fcca4

Please sign in to comment.