Add smart magnification gesture

This commit is contained in:
Jim Eckerlein
2022-11-11 12:11:09 +01:00
parent 05484c5888
commit cdcaa561da
3 changed files with 28 additions and 0 deletions

View File

@@ -29,6 +29,9 @@ fn main() {
println!("Zoomed out {}", delta);
}
}
WindowEvent::TouchpadSmartMagnify { .. } => {
println!("Smart zoom");
}
WindowEvent::TouchpadRotate { delta, .. } => {
if delta > 0.0 {
println!("Rotated counterclockwise {}", delta);