fix: editor-mode-switch animation should only run once (#3543)

Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
Garfield LeeandAlex Yang authored and GitHub committed 2023-08-03 08:24:10 +00:00
1 parent 9449e66396
commit 3a0797955c
1 file changed
+2 -2
@@ -50,7 +50,7 @@ export const PageSwitchItem = (
<HoverAnimateController {...props}>
<InternalLottie
options={{
loop: true,
loop: false,
autoplay: false,
animationData: require('./animation-data/page-hover.json'),
rendererSettings: {
@@ -69,7 +69,7 @@ export const EdgelessSwitchItem = (
<HoverAnimateController {...props}>
<InternalLottie
options={{
loop: true,
loop: false,
autoplay: false,
animationData: require('./animation-data/edgeless-hover.json'),
rendererSettings: {