Skip to content

Commit 13473d8

Browse files
committed
Improve ImGuiPresenter, prevent mouse scroll event when handled
1 parent 3005e14 commit 13473d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/ImGui/src/ImGui/ImGuiPresenter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class ImGuiSceneEventTracker : public ImGuiEventTracker
185185
}
186186
};
187187
auto mouseListener = EventListenerMouse::create();
188-
mouseListener->onMouseDown = mouseListener->onMouseUp = stopAnyMouse;
188+
mouseListener->onMouseDown = mouseListener->onMouseUp = mouseListener->onMouseMove = mouseListener->onMouseScroll = stopAnyMouse;
189189
_trackLayer->getEventDispatcher()->addEventListenerWithSceneGraphPriority(mouseListener, _trackLayer);
190190
scene->addChild(_trackLayer, INT_MAX);
191191
#endif

0 commit comments

Comments
 (0)