Desktop: Trackpad pinch to zoom (#3271)

* prototype pinch gesture

* pinch to zoom

* fix
This commit is contained in:
Timon
2025-10-14 22:27:27 +00:00
committed by GitHub
parent 34d0b76333
commit 717defb2bb
2 changed files with 17 additions and 1 deletions
+2
View File
@@ -8,5 +8,7 @@ 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 PINCH_ZOOM_SPEED: f64 = 300.0;
pub(crate) const MULTICLICK_TIMEOUT: Duration = Duration::from_millis(500);
pub(crate) const MULTICLICK_ALLOWED_TRAVEL: usize = 4;