fixup! ♻️(frontend) refactor screen share zoom pan with useMove and imperative DOM updates

This commit is contained in:
Ovgodd
2026-09-02 08:46:16 +02:00
parent 2f908cdaf8
commit 7b95c3e6df
@@ -24,7 +24,7 @@ export const clampZoom = (value: number) => {
return Math.max(MIN_ZOOM, Math.min(MAX_ZOOM, value))
}
// Restrict pan so the content edge never passes the viewport center.
// Restrict pan so the picture always covers the view.
export const clampPan = (pan: PanOffset, zoom: number): PanOffset => {
const maxPan = ((zoom - 1) / zoom) * PAN_CLAMP_HALF
return {