really small cleanup

This commit is contained in:
FabianLars 2020-02-26 21:58:34 +01:00
parent 0d8d236be6
commit 1ad83889be
2 changed files with 2 additions and 8 deletions

View file

@ -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)),