swiper icon indicating copy to clipboard operation
swiper copied to clipboard

fix(core): centerInsuffientSlides takes offsets into account

Open slemling opened this issue 1 year ago • 3 comments

When using centerInsufficientSlides together with slidesOffsetBefore and slidesOffsetAfter, the slides won’t be centered correctly. Apparently slidesOffsetBefore and slidesOffsetAfter are not taken into account in the calculation of the offset for centerInsufficientSlides.

Codesandbox

Resolves https://github.com/nolimits4web/swiper/issues/5436 (was closed already due to lacking information / activity, but issue still remains)

slemling avatar Apr 04 '24 08:04 slemling

t0ggles-create swiper

nolimits4web avatar Apr 04 '24 08:04 nolimits4web

Task nolimits4web/SWIPER-86 was created

t0ggles task SWIPER-86

t0ggles[bot] avatar Apr 04 '24 08:04 t0ggles[bot]

Hi @nolimits4web, I also ran into this problem. Any chance to get this released in the next few weeks?

@slemling Thanks for the fix. This saves me from building a messy workaround.

sascha-eisenmann avatar Apr 16 '24 07:04 sascha-eisenmann

Hey, any update here? It would be great to get a fix some time soon :)

slemling avatar May 13 '24 07:05 slemling

Task nolimits4web/SWIPER-86 status changed to Done

t0ggles[bot] avatar May 13 '24 07:05 t0ggles[bot]