diff --git a/src/screens/PlayDetail/Portrait/Player/Lyric.js b/src/screens/PlayDetail/Portrait/Player/Lyric.js index 4f1e8e8..5ec9c0b 100644 --- a/src/screens/PlayDetail/Portrait/Player/Lyric.js +++ b/src/screens/PlayDetail/Portrait/Player/Lyric.js @@ -44,7 +44,7 @@ export default memo(() => { // const imgWidth = useMemo(() => layout.width * 0.75, [layout.width]) const handleScrollToActive = useCallback((index = lineRef.current) => { if (index < 0) return - if (scrollViewRef.current) { + if (scrollViewRef.current && linesRef.current.length <= index + 1) { try { scrollViewRef.current.scrollToIndex({ index: index,