mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 05:10:03 -04:00
Add smart magnification gesture
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user