fix(headerbar): window being dragged on click
This commit is contained in:
parent
9eb55ce893
commit
9963629a4f
2 changed files with 2 additions and 2 deletions
2
iced
2
iced
|
|
@ -1 +1 @@
|
|||
Subproject commit 8b2389f144966a5f9b60ab778c1073748fee5e70
|
||||
Subproject commit c7b345ec511c5fb2591f07a33ec5822ccc59db60
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue