mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 05:10:03 -04:00
Deliver position of smart magnification event
This commit is contained in:
@@ -29,8 +29,8 @@ fn main() {
|
||||
println!("Zoomed out {}", delta);
|
||||
}
|
||||
}
|
||||
WindowEvent::TouchpadSmartMagnify { .. } => {
|
||||
println!("Smart zoom");
|
||||
WindowEvent::TouchpadSmartMagnify { position, .. } => {
|
||||
println!("Smart zoom at {position:?}");
|
||||
}
|
||||
WindowEvent::TouchpadRotate { delta, .. } => {
|
||||
if delta > 0.0 {
|
||||
|
||||
Reference in New Issue
Block a user