diff --git a/obs/window-basic-interaction.cpp b/obs/window-basic-interaction.cpp index d5528926b9241524a51c3d65e79611e3bcfc30be..8f51f4f4c749a48c19b8345db402f36766663cb0 100644 --- a/obs/window-basic-interaction.cpp +++ b/obs/window-basic-interaction.cpp @@ -347,7 +347,10 @@ bool OBSBasicInteraction::HandleMouseWheelEvent(QWheelEvent *event) yDelta = event->delta(); } - obs_source_send_mouse_wheel(source, &mouseEvent, xDelta, yDelta); + if (GetSourceRelativeXY(event->x(), event->y(), mouseEvent.x, + mouseEvent.y)) + obs_source_send_mouse_wheel(source, &mouseEvent, xDelta, + yDelta); return true; }