1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Fix dragging of custom_window_frame example on Windows (#4656)

* Related #4592 
* Closes #4647 

Fix dragging of custom_window_frame on Windows (re-edited)
This commit is contained in:
rustbasic
2024-06-19 23:19:41 +09:00
committed by GitHub
parent 52a8e11764
commit d9c5fb04ae
5 changed files with 5 additions and 27 deletions

View File

@@ -112,7 +112,7 @@ fn title_bar_ui(ui: &mut egui::Ui, title_bar_rect: eframe::epaint::Rect, title:
.send_viewport_cmd(ViewportCommand::Maximized(!is_maximized));
}
if title_bar_response.dragged_by(PointerButton::Primary) {
if title_bar_response.drag_started_by(PointerButton::Primary) {
ui.ctx().send_viewport_cmd(ViewportCommand::StartDrag);
}