diff options
author | 2024-10-14 23:01:07 +0300 | |
---|---|---|
committer | 2024-10-14 23:01:07 +0300 | |
commit | 6c5799e759c5c8384d53b7e73e5a0b580008bf3f (patch) | |
tree | 61ef3de7f44b1c5e92d5b161f4a9d777e01383f7 /core/src | |
parent | c01ef5bdbb10a57bf2d4c863316aaf3bebe32c78 (diff) | |
download | iced-6c5799e759c5c8384d53b7e73e5a0b580008bf3f.tar.gz iced-6c5799e759c5c8384d53b7e73e5a0b580008bf3f.tar.bz2 iced-6c5799e759c5c8384d53b7e73e5a0b580008bf3f.zip |
Introduce consecutive click distance like other toolkits such as gtk,qt, imgui.
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/mouse/click.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/mouse/click.rs b/core/src/mouse/click.rs index 07a4db5a..0a373878 100644 --- a/core/src/mouse/click.rs +++ b/core/src/mouse/click.rs @@ -82,7 +82,7 @@ impl Click { None }; - self.position == new_position + self.position.distance(new_position) < 6.0 && duration .map(|duration| duration.as_millis() <= 300) .unwrap_or(false) |