mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-03 06:42:09 +08:00
减慢歌词详情页歌词滚动速度
This commit is contained in:
parent
c12bc8a4df
commit
f6fce15440
@ -1,6 +1,7 @@
|
||||
### 优化
|
||||
|
||||
- 通过歌曲菜单添加不喜欢歌曲时需要二次确认防止手抖
|
||||
- 减慢歌词详情页歌词滚动速度
|
||||
|
||||
### 修复
|
||||
|
||||
|
@ -110,7 +110,7 @@ export default () => {
|
||||
}
|
||||
offset += (listLayoutInfoRef.current.lineHeights[line] ?? 0) / 2
|
||||
try {
|
||||
scrollCancelRef.current = scrollTo(flatListRef.current, scrollInfoRef.current, offset - scrollInfoRef.current.layoutMeasurement.height * 0.42, 300, () => {
|
||||
scrollCancelRef.current = scrollTo(flatListRef.current, scrollInfoRef.current, offset - scrollInfoRef.current.layoutMeasurement.height * 0.42, 600, () => {
|
||||
scrollCancelRef.current = null
|
||||
})
|
||||
} catch {}
|
||||
|
@ -150,7 +150,7 @@ export default () => {
|
||||
}
|
||||
offset += (listLayoutInfoRef.current.lineHeights[line] ?? 0) / 2
|
||||
try {
|
||||
scrollCancelRef.current = scrollTo(flatListRef.current, scrollInfoRef.current, offset - scrollInfoRef.current.layoutMeasurement.height * 0.42, 300, () => {
|
||||
scrollCancelRef.current = scrollTo(flatListRef.current, scrollInfoRef.current, offset - scrollInfoRef.current.layoutMeasurement.height * 0.42, 600, () => {
|
||||
scrollCancelRef.current = null
|
||||
})
|
||||
} catch {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user