mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Bug Fix : Response::is_pointer_button_down_on is now false the frame the button is released (#3833)
* Closes #3809 * Closes #3669 * Closes #3791 --------- Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
@@ -105,7 +105,9 @@ fn title_bar_ui(ui: &mut egui::Ui, title_bar_rect: eframe::epaint::Rect, title:
|
||||
let is_maximized = ui.input(|i| i.viewport().maximized.unwrap_or(false));
|
||||
ui.ctx()
|
||||
.send_viewport_cmd(ViewportCommand::Maximized(!is_maximized));
|
||||
} else if title_bar_response.is_pointer_button_down_on() {
|
||||
}
|
||||
|
||||
if title_bar_response.is_pointer_button_down_on() {
|
||||
ui.ctx().send_viewport_cmd(ViewportCommand::StartDrag);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user