mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-23 11:29:54 +00:00
Gestures write the selection box's position directly during drags, so rendering the box at the hugged (cropped) rect made two writers disagree: after any drag the box parked at the full-bounds position (or shrank twice mid-drag). Keep the box at the element's full bounds — the basis the gesture machinery owns — and render the hug as the element's inset clip-path scaled into overlay space and applied to the box itself (the pre-existing pattern for clipped elements). The resize handle shifts to the visible region's corner so the clip doesn't swallow it.