Skip to content

Commit

Permalink
Improve ImGuiPresenter, prevent mouse scroll event when handled
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Oct 4, 2024
1 parent 5fe7c5a commit 95147ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/ImGui/src/ImGui/ImGuiPresenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class ImGuiSceneEventTracker : public ImGuiEventTracker
}
};
auto mouseListener = EventListenerMouse::create();
mouseListener->onMouseDown = mouseListener->onMouseUp = stopAnyMouse;
mouseListener->onMouseDown = mouseListener->onMouseUp = mouseListener->onMouseMove = mouseListener->onMouseScroll = stopAnyMouse;
_trackLayer->getEventDispatcher()->addEventListenerWithSceneGraphPriority(mouseListener, _trackLayer);
scene->addChild(_trackLayer, INT_MAX);
#endif
Expand Down

0 comments on commit 95147ee

Please sign in to comment.