MCPcopy Create free account
hub / github.com/code100x/cms / showZoomLevel

Function showZoomLevel

src/components/VideoPlayer2.tsx:262–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

260
261 // Optimized zoom indicator
262 const showZoomLevel = () => {
263 zoomIndicator.textContent = `${transformState.scale.toFixed(1)}x`;
264 zoomIndicator.style.opacity = '1';
265
266 if (zoomIndicator.timeoutId) clearTimeout(zoomIndicator.timeoutId);
267
268 zoomIndicator.timeoutId = setTimeout(() => {
269 zoomIndicator.style.opacity = '0';
270 }, 1000);
271 };
272
273 // Reset handler with animation frame
274 const resetZoom = () => {

Callers 1

setupZoomFeaturesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected