From 02ccf1dbe497b9f257528d810db8bea49c2ee7d9 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 9 Sep 2022 13:35:48 -0700 Subject: [PATCH] fix --- packages/client/src/pages/timeline.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/pages/timeline.vue b/packages/client/src/pages/timeline.vue index 7a1012fe01..f06605aa21 100644 --- a/packages/client/src/pages/timeline.vue +++ b/packages/client/src/pages/timeline.vue @@ -276,6 +276,7 @@ let swiperRef = null; function setSwiperRef(swiper) { swiperRef = swiper; + syncSlide(timelines.indexOf(src)); } function onSlideChange() { @@ -286,7 +287,6 @@ function syncSlide(index) { swiperRef.slideTo(index); } -syncSlide(timelines.indexOf(src));