Skip to content

Commit

Permalink
Use MouseWheelScrollEvent instead of MouseWheelMoveEvent
Browse files Browse the repository at this point in the history
Fixes #83
  • Loading branch information
Ilya Dailidyonok committed May 29, 2019
1 parent 678fcf3 commit 83ce5df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imgui-SFML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<float>(event.mouseWheel.delta);
case sf::Event::MouseWheelScrolled:
io.MouseWheel += event.mouseWheelScroll.delta;
break;
case sf::Event::KeyPressed: // fall-through
case sf::Event::KeyReleased:
Expand Down

0 comments on commit 83ce5df

Please sign in to comment.