1
0
Fork 0

macos/view: fix compilation

This commit is contained in:
William Light 2022-11-13 02:22:53 +01:00
parent eeded04b3e
commit 1780c89baf

View file

@ -360,5 +360,10 @@ extern "C" fn scroll_wheel(this: &Object, _: Sel, event: id) {
}
};
state.trigger_event(Event::Mouse(MouseEvent::WheelScrolled(delta)));
let modifiers = unsafe { NSEvent::modifierFlags(event) };
state.trigger_event(Event::Mouse(MouseEvent::WheelScrolled {
delta,
modifiers: make_modifiers(modifiers)
}));
}