mirror of
https://github.com/block/buzz.git
synced 2026-10-31 22:41:12 +00:00
fix(desktop): satisfy markdown size ratchet
Co-authored-by: npub14ndfusear8wdpe4kss8h7juc7wjk78atnqzf63zvppcpneknv4sq6x9370 <acda9e433d19dcd0e6b6840f7f4b98f3a56f1fab98049d444c087019e6d36560@buzz.block.builderlab.xyz> Signed-off-by: npub14ndfusear8wdpe4kss8h7juc7wjk78atnqzf63zvppcpneknv4sq6x9370 <acda9e433d19dcd0e6b6840f7f4b98f3a56f1fab98049d444c087019e6d36560@buzz.block.builderlab.xyz>
This commit is contained in:
parent
1e266354ac
commit
e0ba031a6f
@@ -661,16 +661,10 @@ function ImageZoomOverlay({
|
||||
const frameCornerRadii = isReturning
|
||||
? returnCornerRadii
|
||||
: imageLightboxExpandedCornerRadii();
|
||||
// Once fully settled at 1x, drop the transform to `none` so the wrapper
|
||||
// leaves the GPU-composited path and the <img> repaints through WebKit's
|
||||
// high-quality paint rasterizer — matching inline-image sharpness. An
|
||||
// identity `translate3d` would keep it composited, so it must be `none`.
|
||||
const atRest =
|
||||
isOpen &&
|
||||
hasEntered &&
|
||||
zoom === IMAGE_LIGHTBOX_MIN_ZOOM &&
|
||||
// Holds composited through the trackpad gesture-end idle window: after a
|
||||
// pinch settles back to exactly 1x, `isAdjustingZoom` stays true for
|
||||
// IMAGE_LIGHTBOX_TRACKPAD_ZOOM_IDLE_MS, avoiding a demote/re-promote thrash.
|
||||
!isAdjustingZoom;
|
||||
const transform = atRest
|
||||
|
||||
Reference in New Issue
Block a user