macos/view: fix compilation
This commit is contained in:
parent
eeded04b3e
commit
1780c89baf
|
@ -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)
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue