Desktop: Support receiving double click inputs (#3168)

* input support double clicks and clean up

* Review improvements
This commit is contained in:
Timon
2025-09-13 12:40:31 +00:00
committed by GitHub
parent 3cc2aa8d89
commit e97d5520e8
2 changed files with 231 additions and 159 deletions
+10
View File
@@ -1,2 +1,12 @@
use std::time::Duration;
pub(crate) const RESOURCE_SCHEME: &str = "resources";
pub(crate) const RESOURCE_DOMAIN: &str = "resources";
pub(crate) const SCROLL_LINE_HEIGHT: usize = 40;
pub(crate) const SCROLL_LINE_WIDTH: usize = 40;
pub(crate) const SCROLL_SPEED_X: f32 = 3.0;
pub(crate) const SCROLL_SPEED_Y: f32 = 3.0;
pub(crate) const MULTICLICK_TIMEOUT: Duration = Duration::from_millis(500);
pub(crate) const MULTICLICK_ALLOWED_TRAVEL: usize = 4;