mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-19 04:34:04 -04:00
Set proper source relative X,Y coords on wheel interaction
This commit is contained in:
1 parent
3b0fa22f8a
commit
c62a0059ed
1 file changed
+4
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user