Add mouse::Button to mouse::Click
This commit is contained in:
parent
630f3525dd
commit
9edd805c02
3 changed files with 17 additions and 4 deletions
|
|
@ -1056,6 +1056,7 @@ impl<Message> Update<Message> {
|
|||
|
||||
let click = mouse::Click::new(
|
||||
cursor_position,
|
||||
mouse::Button::Left,
|
||||
state.last_click,
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -656,8 +656,11 @@ where
|
|||
cursor_position.x - text_bounds.x - alignment_offset
|
||||
};
|
||||
|
||||
let click =
|
||||
mouse::Click::new(cursor_position, state.last_click);
|
||||
let click = mouse::Click::new(
|
||||
cursor_position,
|
||||
mouse::Button::Left,
|
||||
state.last_click,
|
||||
);
|
||||
|
||||
match click.kind() {
|
||||
click::Kind::Single => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue