Browse Source

Fixed bug in custom window example (#1750)

pull/1917/head
Lorren Biffin 2 years ago
committed by GitHub
parent
commit
e3f993d7b4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      examples/custom_window_frame/src/main.rs

4
examples/custom_window_frame/src/main.rs

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

Loading…
Cancel
Save