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();
|
state.drag_initiated = cursor.position();
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(message) = widget.on_press.as_ref() {
|
if widget.on_press.is_some() {
|
||||||
shell.publish(message(cursor.position_in(layout_bounds)));
|
|
||||||
|
|
||||||
return event::Status::Captured;
|
return event::Status::Captured;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue