Add mouse::Button to mouse::Click

This commit is contained in:
Isaac Marovitz 2024-04-30 11:49:50 -04:00 committed by Héctor Ramón Jiménez
parent 630f3525dd
commit 9edd805c02
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 17 additions and 4 deletions

View file

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