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
|
|
@ -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