metafizzy / flickity

:leaves: Touch, responsive, flickable carousels
https://flickity.metafizzy.co
7.52k stars 605 forks source link

Flickity last image is jumping around #1247

Closed ghost closed 1 year ago

ghost commented 2 years ago

When using wrap around the last image visibly jumps around from the beginning to the and vice versa. Maybe duplication of the last element is sufficient? V 3.0.0

https://www.youtube.com/watch?v=MbIhAmf7IGk

      $carousel.flickity({
        cellAlign: 'center',
        wrapAround: true,
        lazyLoad: 2,
        imagesLoaded: true,
        percentPosition: false,
        pageDots: false,
        initialIndex: 1,
        arrowShape: 'M 25,50 L 70,95 L 70,90 L 30,50  L 70,10 L 70,5 Z'
      });
desandro commented 1 year ago

If you're using Flickity v3, try setting wrapAround: 'fill'. See #809.