mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-14 18:01:20 +08:00
e5398dd63e
getBoundingClientRect() returns visual dimensions inflated by ancestor CSS zoom. When the preview stage has zoom: 2, the player's rect was 2x its layout size, so scaleIframeToFit computed a 2x scale — then CSS zoom doubled it again. offsetWidth/offsetHeight return layout dimensions regardless of ancestor zoom, giving the correct scale at every zoom level. Reverts the NLEPreview writeTransform back to CSS zoom (smooth, native) now that the root cause in scaleIframeToFit is fixed.