mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Fixed bug in custom window example (#1750)
This commit is contained in:
@@ -99,8 +99,8 @@ fn custon_window_frame(
|
||||
rect
|
||||
};
|
||||
let title_bar_response =
|
||||
ui.interact(title_bar_rect, Id::new("title_bar"), Sense::drag());
|
||||
if title_bar_response.drag_started() {
|
||||
ui.interact(title_bar_rect, Id::new("title_bar"), Sense::click());
|
||||
if title_bar_response.is_pointer_button_down_on() {
|
||||
frame.drag_window();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user