MCPcopy
hub / github.com/CapSoftware/Cap / ignoreMoveFor

Function ignoreMoveFor

apps/desktop/src/routes/camera.tsx:73–75  ·  view source on GitHub ↗
(durationMs: number)

Source from the content-addressed store, hash-verified

71let ignoreMoveUntil = 0;
72
73const ignoreMoveFor = (durationMs: number) => {
74 ignoreMoveUntil = Date.now() + durationMs;
75};
76
77const shouldIgnoreMove = () => Date.now() < ignoreMoveUntil;
78

Callers 2

centerCameraOnlyWindowFunction · 0.85
LegacyCameraPreviewPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected