From 46303d279824ec9f03490d4084bf37d073e63c93 Mon Sep 17 00:00:00 2001 From: Ella <4710635+ellatrix@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:01:16 +0800 Subject: [PATCH] List view: fix stuck moving animation on Enter (#59644) Co-authored-by: ellatrix Co-authored-by: andrewserong --- .../block-editor/src/components/use-moving-animation/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-editor/src/components/use-moving-animation/index.js b/packages/block-editor/src/components/use-moving-animation/index.js index 4a66fe6fb6e637..a6ac0968ca16fc 100644 --- a/packages/block-editor/src/components/use-moving-animation/index.js +++ b/packages/block-editor/src/components/use-moving-animation/index.js @@ -142,6 +142,7 @@ function useMovingAnimation( { triggerAnimationOnChange, clientId } ) { return () => { controller.stop(); + controller.set( { x: 0, y: 0 } ); }; }, [ previous,