From c62a0059ed2e99f34edc0f73dfe6fef0615b4335 Mon Sep 17 00:00:00 2001 From: John Bradley <jrb@turrettech.com> Date: Wed, 17 Sep 2014 12:05:49 -0500 Subject: [PATCH] Set proper source relative X,Y coords on wheel interaction --- obs/window-basic-interaction.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/obs/window-basic-interaction.cpp b/obs/window-basic-interaction.cpp index d5528926b..8f51f4f4c 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; } -- GitLab