MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / flushPendingControlMove

Function flushPendingControlMove

packages/client/src/app/AppShell.tsx:2273–2284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2271 }
2272
2273 function flushPendingControlMove() {
2274 const pending = pendingControlMoveRef.current;
2275 pendingControlMoveRef.current = null;
2276 if (controlMoveFrameRef.current) {
2277 window.cancelAnimationFrame(controlMoveFrameRef.current);
2278 controlMoveFrameRef.current = 0;
2279 }
2280 if (!pending) {
2281 return;
2282 }
2283 sendControlNow(pending.udid, pending.message);
2284 }
2285
2286 function sendControlNow(udid: string, message: ControlMessage): boolean {
2287 setLocalError("");

Callers 1

sendControlFunction · 0.85

Calls 1

sendControlNowFunction · 0.85

Tested by

no test coverage detected