Function
updateManualPosition
(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: () => { |
Tested by
no test coverage detected