fix: clear drag_initiated state on dbl click
This commit is contained in:
parent
5ca1838a2d
commit
c2ad04a4da
1 changed files with 2 additions and 0 deletions
|
|
@ -468,8 +468,10 @@ fn update<Message: Clone, Theme, Renderer>(
|
||||||
);
|
);
|
||||||
state.last_click = Some(click);
|
state.last_click = Some(click);
|
||||||
if let mouse::click::Kind::Double = click.kind() {
|
if let mouse::click::Kind::Double = click.kind() {
|
||||||
|
state.drag_initiated = None;
|
||||||
shell.publish(message.clone());
|
shell.publish(message.clone());
|
||||||
shell.capture_event();
|
shell.capture_event();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue