core: darwin: Add ability to detect and fire magnify event which is triggered by pinch to zoom on a trackpad

This commit is contained in:
foxnne 2024-12-12 09:43:12 -06:00 committed by Emi Gutekanst
parent 98c303aefc
commit ff11fd6d4c
2 changed files with 23 additions and 0 deletions

View file

@ -522,6 +522,10 @@ pub const Event = union(enum) {
window_open: struct {
window_id: mach.ObjectID,
},
magnify: struct {
window_id: mach.ObjectID,
magnification: f32,
},
focus_gained: struct {
window_id: mach.ObjectID,
},