mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-03 04:22:09 +08:00
延长动画时间
This commit is contained in:
parent
f6366c2a53
commit
cc5628252c
@ -161,7 +161,7 @@ export default () => {
|
||||
delayScrollTimeout.current = setTimeout(() => {
|
||||
delayScrollTimeout.current = null
|
||||
handleScrollToActive()
|
||||
}, 300)
|
||||
}, 600)
|
||||
}, [line])
|
||||
|
||||
const handleScrollToIndexFailed: FlatListType['onScrollToIndexFailed'] = (info) => {
|
||||
|
@ -200,7 +200,7 @@ export default () => {
|
||||
delayScrollTimeout.current = setTimeout(() => {
|
||||
delayScrollTimeout.current = null
|
||||
handleScrollToActive()
|
||||
}, 300)
|
||||
}, 600)
|
||||
}, [line])
|
||||
|
||||
const handleScrollToIndexFailed: FlatListType['onScrollToIndexFailed'] = (info) => {
|
||||
|
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user