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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user