Added in mousewheel as part of this.

This commit is contained in:
Adam Harrison
2021-11-14 15:41:28 -05:00
parent c04dc648de
commit 7a3e8ed86a
3 changed files with 10 additions and 12 deletions
+3 -1
View File
@@ -928,7 +928,9 @@ function core.on_event(type, ...)
elseif type == "mousereleased" then
core.root_view:on_mouse_released(...)
elseif type == "mousewheel" then
core.root_view:on_mouse_wheel(...)
if not core.root_view:on_mouse_wheel(...) then
did_keymap = keymap.on_mouse_wheel(...)
end
elseif type == "resized" then
core.window_mode = system.get_window_mode()
elseif type == "minimized" or type == "maximized" or type == "restored" then