extend animation
This commit is contained in:
@@ -738,7 +738,7 @@ function Scrubber({
|
|||||||
'worklet'
|
'worklet'
|
||||||
seekProgressSV.set(currentTimeSV.get())
|
seekProgressSV.set(currentTimeSV.get())
|
||||||
isSeekingSV.set(true)
|
isSeekingSV.set(true)
|
||||||
seekingAnimationSV.set(withTiming(1, {duration: 100}))
|
seekingAnimationSV.set(withTiming(1, {duration: 500}))
|
||||||
})
|
})
|
||||||
.onUpdate(evt => {
|
.onUpdate(evt => {
|
||||||
'worklet'
|
'worklet'
|
||||||
@@ -758,7 +758,7 @@ function Scrubber({
|
|||||||
runOnJS(seekBy)(newTime - currentTimeSV.get())
|
runOnJS(seekBy)(newTime - currentTimeSV.get())
|
||||||
|
|
||||||
isSeekingSV.set(false)
|
isSeekingSV.set(false)
|
||||||
seekingAnimationSV.set(withTiming(0, {duration: 100}))
|
seekingAnimationSV.set(withTiming(0, {duration: 500}))
|
||||||
})
|
})
|
||||||
}, [
|
}, [
|
||||||
seekingAnimationSV,
|
seekingAnimationSV,
|
||||||
|
|||||||
Reference in New Issue
Block a user