Skip to content

Commit

Permalink
regression: Disable animation on image gallery pagination transition (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbsilva137 authored Jun 11, 2024
1 parent 811f316 commit 209ea9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const ImageGallery = ({ images, onClose, loadMore }: { images: IUpload[];
modules={[Navigation, Zoom, Keyboard, A11y]}
onInit={(swiper) => setSwiperInst(swiper)}
onSlidesGridLengthChange={(swiper) => {
swiper.slideTo(images.length - gridSize, 2000);
swiper.slideTo(images.length - gridSize, 0);
setGridSize(images.length);
}}
onReachBeginning={loadMore}
Expand Down

0 comments on commit 209ea9f

Please sign in to comment.