diff --git a/imgui-SFML.cpp b/imgui-SFML.cpp index a7b7049..fc0df23 100644 --- a/imgui-SFML.cpp +++ b/imgui-SFML.cpp @@ -305,8 +305,8 @@ void ProcessEvent(const sf::Event& event) { s_touchDown[event.touch.finger] = true; } } break; - case sf::Event::MouseWheelMoved: - io.MouseWheel += static_cast(event.mouseWheel.delta); + case sf::Event::MouseWheelScrolled: + io.MouseWheel += event.mouseWheelScroll.delta; break; case sf::Event::KeyPressed: // fall-through case sf::Event::KeyReleased: