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

Function resetZoom

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

Source from the content-addressed store, hash-verified

272
273 // Reset handler with animation frame
274 const resetZoom = () => {
275 transformState.scale = 1;
276 transformState.translateX = 0;
277 transformState.translateY = 0;
278
279 requestAnimationFrame(() => {
280 videoEl.style.transition = 'transform 0.3s ease-out';
281 updateTransform();
282 videoEl.classList.remove('zoomed');
283 });
284 };
285
286 // Adding resize observer for responsive boundaries
287 const resizeObserver = new ResizeObserver(() => {

Callers 2

setupZoomFeaturesFunction · 0.85
cleanupFunction · 0.85

Calls 1

updateTransformFunction · 0.85

Tested by

no test coverage detected