Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(ios-simulator): preserve live touch phase type

JiangJiahaob8e971aa577e
diff --git a/apps/desktop/src/main/maker-ipc/iosSimulatorHandlers.ts b/apps/desktop/src/main/maker-ipc/iosSimulatorHandlers.ts
index 4d31d36bf8..0ab44ea25f 100644
--- a/apps/desktop/src/main/maker-ipc/iosSimulatorHandlers.ts
+++ b/apps/desktop/src/main/maker-ipc/iosSimulatorHandlers.ts
@@ -436,7 +436,7 @@ export function registerIOSSimulatorHandlers(
throwIpcError('INVALID_PARAMS', 'touch coordinates must be normalized');
}
const route = readViewerRoute(record);
- const touch = {
+ const touch: Parameters<IOSSimulatorHandlerDeps['updateViewerTouch']>[3] = {
gestureId: gestureId.trim(),
phase,
xRatio: record.xRatio,