Skip to content

Commit

Permalink
Edit Site: Fix block styles navigation error
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Nov 28, 2024
1 parent b54d1fe commit f96e2e3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f96e2e3

Please sign in to comment.