From e3f993d7b4abc2d9001a45eb6e6b26d3a6ae0388 Mon Sep 17 00:00:00 2001 From: Lorren Biffin Date: Thu, 4 Aug 2022 03:32:27 -0700 Subject: [PATCH] Fixed bug in custom window example (#1750) --- examples/custom_window_frame/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/custom_window_frame/src/main.rs b/examples/custom_window_frame/src/main.rs index 9f3f10aa..64e01b28 100644 --- a/examples/custom_window_frame/src/main.rs +++ b/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(); }