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