延长动画时间

This commit is contained in:
lyswhut 2023-09-01 14:30:19 +08:00
parent f6366c2a53
commit cc5628252c
3 changed files with 3 additions and 3 deletions

View File

@ -161,7 +161,7 @@ export default () => {
delayScrollTimeout.current = setTimeout(() => {
delayScrollTimeout.current = null
handleScrollToActive()
}, 300)
}, 600)
}, [line])
const handleScrollToIndexFailed: FlatListType['onScrollToIndexFailed'] = (info) => {

View File

@ -200,7 +200,7 @@ export default () => {
delayScrollTimeout.current = setTimeout(() => {
delayScrollTimeout.current = null
handleScrollToActive()
}, 300)
}, 600)
}, [line])
const handleScrollToIndexFailed: FlatListType['onScrollToIndexFailed'] = (info) => {

View File

@ -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])