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

Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
Garfield Lee
2023-08-03 16:24:10 +08:00
committed by GitHub
parent 9449e66396
commit 3a0797955c
@@ -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: {