Skip to content
Snippets Groups Projects
Commit c62a0059 authored by John Bradley's avatar John Bradley
Browse files

Set proper source relative X,Y coords on wheel interaction

parent 3b0fa22f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment