Skip to content

Commit e97d552

Browse files
Desktop: Support receiving double click inputs (#3168)
* input support double clicks and clean up * Review improvements
1 parent 3cc2aa8 commit e97d552

File tree

2 files changed

+231
-159
lines changed

2 files changed

+231
-159
lines changed

desktop/src/cef/consts.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1+
use std::time::Duration;
2+
13
pub(crate) const RESOURCE_SCHEME: &str = "resources";
24
pub(crate) const RESOURCE_DOMAIN: &str = "resources";
5+
6+
pub(crate) const SCROLL_LINE_HEIGHT: usize = 40;
7+
pub(crate) const SCROLL_LINE_WIDTH: usize = 40;
8+
pub(crate) const SCROLL_SPEED_X: f32 = 3.0;
9+
pub(crate) const SCROLL_SPEED_Y: f32 = 3.0;
10+
11+
pub(crate) const MULTICLICK_TIMEOUT: Duration = Duration::from_millis(500);
12+
pub(crate) const MULTICLICK_ALLOWED_TRAVEL: usize = 4;

0 commit comments

Comments
 (0)