diff options
author | 2020-02-26 21:58:34 +0100 | |
---|---|---|
committer | 2020-02-26 21:58:34 +0100 | |
commit | 1ad83889be32b1bdb746e751aa620fad85b864b0 (patch) | |
tree | a39c7744464b519e725f864a922216a4a802ec44 /native/src/input | |
parent | 0d8d236be65abf98a09a13b2e22b677f3d95f195 (diff) | |
download | iced-1ad83889be32b1bdb746e751aa620fad85b864b0.tar.gz iced-1ad83889be32b1bdb746e751aa620fad85b864b0.tar.bz2 iced-1ad83889be32b1bdb746e751aa620fad85b864b0.zip |
really small cleanup
Diffstat (limited to 'native/src/input')
-rw-r--r-- | native/src/input/mouse.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/native/src/input/mouse.rs b/native/src/input/mouse.rs index eaac52f3..ca3daeb1 100644 --- a/native/src/input/mouse.rs +++ b/native/src/input/mouse.rs @@ -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)), |