mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
Add smart magnify gesture support for macOS (#2554)
* Add smart magnification gesture
* Deliver position of smart magnification event
* Document smart magnification event
* Revert "Deliver position of smart magnification event"
This reverts commit ac0e61a9a4.
* Remove mention of touchpad from smart magnification event
* Update change log
* Mention minimum macOS version supporting smart magnification
* Improve doc
This commit is contained in:
@@ -29,6 +29,9 @@ fn main() {
|
||||
println!("Zoomed out {}", delta);
|
||||
}
|
||||
}
|
||||
WindowEvent::SmartMagnify { .. } => {
|
||||
println!("Smart zoom");
|
||||
}
|
||||
WindowEvent::TouchpadRotate { delta, .. } => {
|
||||
if delta > 0.0 {
|
||||
println!("Rotated counterclockwise {}", delta);
|
||||
|
||||
Reference in New Issue
Block a user