From 9963629a4f62ecb6f5496d92a5a8a4a1f5db302d Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Wed, 13 Sep 2023 15:37:29 +0200 Subject: [PATCH] fix(headerbar): window being dragged on click --- iced | 2 +- src/widget/header_bar.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iced b/iced index 8b2389f1..c7b345ec 160000 --- a/iced +++ b/iced @@ -1 +1 @@ -Subproject commit 8b2389f144966a5f9b60ab778c1073748fee5e70 +Subproject commit c7b345ec511c5fb2591f07a33ec5822ccc59db60 diff --git a/src/widget/header_bar.rs b/src/widget/header_bar.rs index 0cd823e1..7309845f 100644 --- a/src/widget/header_bar.rs +++ b/src/widget/header_bar.rs @@ -136,7 +136,7 @@ impl<'a, Message: Clone + 'static> HeaderBar<'a, Message> { // Assigns a message to emit when the headerbar is dragged. if let Some(message) = self.on_drag.clone() { - widget = widget.on_press(message); + widget = widget.on_drag(message); } // Assigns a message to emit when the headerbar is double-clicked.