harry 1 год назад
Родитель
Сommit
d222e9617d
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/components/VideoSwiper/index.tsx

+ 3 - 0
src/components/VideoSwiper/index.tsx

@@ -100,6 +100,9 @@ export default function VideoSwiper({ list, onFinish, needResumePlay, flushList,
 
         if (activeIndex == current) {
             onFinish(currentListIndex)
+            if (!circular && virualListIndex < list.length - 1){
+                setCircular(true)
+            }
             return
         }
         activeIndex = current