add scroll wheel support to remote desktop

This commit is contained in:
KingKDot
2026-04-22 16:15:53 -05:00
parent 55a346e39b
commit 8c3c6de1c3
5 changed files with 37 additions and 1 deletions
@@ -497,6 +497,13 @@ export function handleRemoteDesktopViewerMessage(ws: ServerWebSocket<SocketData>
sendDesktopCommandWithId(target, "desktop_mouse_up", { button: Number(payload.button) || 0 }, commandId);
break;
}
case "mouse_wheel": {
if (!state.isStreaming) break;
const commandId = uuidv4();
recordRdInput(commandId, clientId, "mouse_wheel");
sendDesktopCommandWithId(target, "desktop_mouse_wheel", { delta: Number(payload.delta) || 0, x: Number((payload as any).x) || 0, y: Number((payload as any).y) || 0 }, commandId);
break;
}
case "key_down": {
if (!state.isStreaming) break;
const commandId = uuidv4();