joe223 / tiny-swiper

Ingenious JavaScript Carousel powered by wonderful plugins. Lightweight yet extensible. Import plugins as needed, No more, no less.
https://tiny-swiper.js.org
1.29k stars 58 forks source link

Element is generating max index having into account shallow slides #74

Closed josemrodrigu closed 2 years ago

josemrodrigu commented 2 years ago

Describe the bug Having a "infinite" swiper (loop mode on) and resize enabled, there is an issue on the instance update. Suddenly, the max index of the instance changes, because Element is taking into account slides with the data-shallow-slider attribute.

Expected behavior The max index of the instance should not be affecteddue to a resize.

Information

joe223 commented 2 years ago

https://github.com/joe223/tiny-swiper/pull/75

josemrodrigu commented 2 years ago

@joe223 do you have an expected publication date for this issue?

Thanks!

joe223 commented 2 years ago

@josemrodrigu Sorry for the late reply.

2.2.0 was released.

API: https://tiny-swiper.js.org/docs/api#breakpoints. Demo: https://tiny-swiper.js.org/docs/demo#breakpoints

josemrodrigu commented 2 years ago

thanks Joe!