diff --git a/packages/block-editor/src/components/iframe/use-scale-canvas.js b/packages/block-editor/src/components/iframe/use-scale-canvas.js index c72266e82e2b0a..1c6cdb7e2da7a3 100644 --- a/packages/block-editor/src/components/iframe/use-scale-canvas.js +++ b/packages/block-editor/src/components/iframe/use-scale-canvas.js @@ -379,7 +379,9 @@ export function useScaleCanvas( { * If we already have an animation running, reverse it. */ if ( animationRef.current ) { - animationRef.current.reverse(); + if ( animationRef.current.timeline.currentTime ) { + animationRef.current.reverse(); + } // Swap the transition to/from refs so that we set the correct values when // finishZoomOutAnimation runs. const tempTransitionFrom = transitionFromRef.current;