Fix for extra click event
This commit is contained in:
parent
cf47297866
commit
8351678822
1 changed files with 1 additions and 3 deletions
|
|
@ -474,9 +474,7 @@ fn update<Message: Clone>(
|
|||
state.drag_initiated = cursor.position();
|
||||
}
|
||||
|
||||
if let Some(message) = widget.on_press.as_ref() {
|
||||
shell.publish(message(cursor.position_in(layout_bounds)));
|
||||
|
||||
if widget.on_press.is_some() {
|
||||
return event::Status::Captured;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue