From cc5628252cb3448701c58c166c3b9e04b77819e0 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Fri, 1 Sep 2023 14:30:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=B6=E9=95=BF=E5=8A=A8=E7=94=BB=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/screens/PlayDetail/Horizontal/Lyric.tsx | 2 +- src/screens/PlayDetail/Vertical/Lyric.tsx | 2 +- src/utils/hooks/useAnimateColor.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/screens/PlayDetail/Horizontal/Lyric.tsx b/src/screens/PlayDetail/Horizontal/Lyric.tsx index c13fcb1..fe0cff9 100644 --- a/src/screens/PlayDetail/Horizontal/Lyric.tsx +++ b/src/screens/PlayDetail/Horizontal/Lyric.tsx @@ -161,7 +161,7 @@ export default () => { delayScrollTimeout.current = setTimeout(() => { delayScrollTimeout.current = null handleScrollToActive() - }, 300) + }, 600) }, [line]) const handleScrollToIndexFailed: FlatListType['onScrollToIndexFailed'] = (info) => { diff --git a/src/screens/PlayDetail/Vertical/Lyric.tsx b/src/screens/PlayDetail/Vertical/Lyric.tsx index 29f57f6..8a24ac4 100644 --- a/src/screens/PlayDetail/Vertical/Lyric.tsx +++ b/src/screens/PlayDetail/Vertical/Lyric.tsx @@ -200,7 +200,7 @@ export default () => { delayScrollTimeout.current = setTimeout(() => { delayScrollTimeout.current = null handleScrollToActive() - }, 300) + }, 600) }, [line]) const handleScrollToIndexFailed: FlatListType['onScrollToIndexFailed'] = (info) => { diff --git a/src/utils/hooks/useAnimateColor.ts b/src/utils/hooks/useAnimateColor.ts index de4a5af..9cc1854 100644 --- a/src/utils/hooks/useAnimateColor.ts +++ b/src/utils/hooks/useAnimateColor.ts @@ -2,7 +2,7 @@ import { useEffect, useMemo, useRef, useState } from 'react' import { Animated } from 'react-native' -const ANIMATION_DURATION = 200 +const ANIMATION_DURATION = 800 export const useAnimateColor = (color: string) => { const anim = useMemo(() => new Animated.Value(0), [color])