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

Function updateManualPosition

apps/desktop/src/routes/editor/CaptionOverlay.tsx:174–185  ·  view source on GitHub ↗
(position: { x: number; y: number })

Source from the content-addressed store, hash-verified

172 });
173
174 const updateManualPosition = (position: { x: number; y: number }) => {
175 if (!project.captions) return;
176
177 setProject(
178 "captions",
179 "settings",
180 produce((captionSettings) => {
181 captionSettings.position = "manual";
182 captionSettings.manualPosition = position;
183 }),
184 );
185 };
186
187 const createMouseDownDrag = (
188 setup: () => {

Callers 1

CaptionOverlayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected