From d1bcc4673ecc5b979bdf7b09b22ac0f3ef23f65d Mon Sep 17 00:00:00 2001 From: shilongfei <31263758+shilongfeicool@users.noreply.github.com> Date: Thu, 2 Nov 2023 17:53:00 +0800 Subject: [PATCH] Update thumbs.mjs fix autoScrollOffset not effective --- src/modules/thumbs/thumbs.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/thumbs/thumbs.mjs b/src/modules/thumbs/thumbs.mjs index f1d1accee..f67a23d99 100644 --- a/src/modules/thumbs/thumbs.mjs +++ b/src/modules/thumbs/thumbs.mjs @@ -153,7 +153,7 @@ export default function Thumb({ swiper, extendParams, on }) { newThumbsIndex > currentThumbsIndex && thumbsSwiper.params.slidesPerGroup === 1 ) { - // newThumbsIndex = newThumbsIndex - slidesPerView + 1; + newThumbsIndex = newThumbsIndex - slidesPerView + 1; } thumbsSwiper.slideTo(newThumbsIndex, initial ? 0 : undefined); }