Fixed bug in custom window example (#1750)

This commit is contained in:
Lorren Biffin 2022-08-04 03:32:27 -07:00 committed by GitHub
parent 2f3c2a360b
commit e3f993d7b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
} }