really small cleanup
This commit is contained in:
parent
0d8d236be6
commit
1ad83889be
2 changed files with 2 additions and 8 deletions
|
|
@ -36,8 +36,7 @@ impl Default for State {
|
|||
|
||||
impl State {
|
||||
/// processes left click to check for double/triple clicks
|
||||
/// return amount of repetitive mouse clicks
|
||||
/// (1 -> double click, 2 -> triple click)
|
||||
/// return amount of repetitive mouse clicks as enum
|
||||
pub fn update(&mut self, position: Point) -> Interaction {
|
||||
self.last_click = match self.last_click {
|
||||
None => Some(Interaction::Click(position)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue