video support

This commit is contained in:
ParkerTenBroeck 2026-01-19 13:13:23 -05:00
parent 3e6f2f3247
commit 0a882b6614
12 changed files with 63 additions and 31 deletions

View file

@ -61,6 +61,8 @@
function applyTransform() {
clampPan();
img.style.transform = `translate(${tx}px, ${ty}px) scale(${scale})`;
img.classList.toggle("is-zoomed", scale > 1);
img.classList.toggle("is-unzoomed", scale === 1);
}
function resetView() {