diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-08 09:04:14 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-08 09:04:14 +0200 |
commit | 22f1e92d16dbf7986977c323c0a2985fead88bfd (patch) | |
tree | 0fb1d9de02e3f187eb40f3bfe4763e25c283b45a /editor/events.cpp | |
parent | 3e5b43638dac74a88918fecc139b4533bd1c0643 (diff) |
a
Diffstat (limited to 'editor/events.cpp')
-rw-r--r-- | editor/events.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/events.cpp b/editor/events.cpp index 4e0a2503..89bdf4a3 100644 --- a/editor/events.cpp +++ b/editor/events.cpp @@ -97,7 +97,9 @@ void app::on_mouse_scroll(const mouse_scroll_event& event) noexcept accessor(Vector2, offset) accessor(Vector2i, position) } e = {event.offset, event.position}; - _imgui.handleMouseScrollEvent(e); + + if (!(cursor.in_imgui = _imgui.handleMouseScrollEvent(e))) + do_mouse_scroll((int)e.offset()[1]); } auto app::resolve_keybinding(int k_, int mods_) const -> std::tuple<key, int> |