Skip to content

Commit 83ce5df

Browse files
author
Ilya Dailidyonok
committed
Use MouseWheelScrollEvent instead of MouseWheelMoveEvent
Fixes #83
1 parent 678fcf3 commit 83ce5df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

imgui-SFML.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ void ProcessEvent(const sf::Event& event) {
305305
s_touchDown[event.touch.finger] = true;
306306
}
307307
} break;
308-
case sf::Event::MouseWheelMoved:
309-
io.MouseWheel += static_cast<float>(event.mouseWheel.delta);
308+
case sf::Event::MouseWheelScrolled:
309+
io.MouseWheel += event.mouseWheelScroll.delta;
310310
break;
311311
case sf::Event::KeyPressed: // fall-through
312312
case sf::Event::KeyReleased:

0 commit comments

Comments
 (0)