flickity icon indicating copy to clipboard operation
flickity copied to clipboard

wrapAround and lazyLoad together cause weird behavior

Open ha-noi opened this issue 10 years ago • 6 comments

Here is a codepen that illustrates the behavior: http://codepen.io/littleredbowtie/pen/MaYYGa

Basically, there is a blank frame that appears in the sequence of the slider and it 'jumps around' when the slider is advanced. This is happening only when the these two options are used together. Here is a codepen without lazyload. http://codepen.io/littleredbowtie/pen/QbeMop

Please note that in both cases, fancybox works fine.

ha-noi avatar Sep 02 '15 23:09 ha-noi

Thanks for reporting this bug. Looks like a proper issue.

Add a 👍 reaction to this issue if you have run into this issue. Do not add +1 comments — They will be deleted.

desandro avatar Sep 03 '15 14:09 desandro

+1

castrolem avatar Jun 29 '16 16:06 castrolem

+1

richgcook avatar Aug 22 '16 14:08 richgcook

any kind of progress on this issue? doesn't actually appear to have anything to do with lazyload. simply having wrapAround and too few items to fill the width of your view seems to cause this issue.

mckennedy avatar Jul 12 '17 20:07 mckennedy

@mckennedy We've got a separate ticket for that one https://github.com/metafizzy/flickity/issues/95#issuecomment-86124653

Yes, this could be helpful. But I feel this is an edge case. Either your content works with wrapAround, or it doesn't. Catering to both use cases could be cumbersome.

desandro avatar Jul 13 '17 12:07 desandro

I fixed this issue by adding a min-width to the image before they lazy loaded. Then scrolling in reverse with wrap around worked fine

In my case i was lucky as all images were the same width.

MoodyNZ avatar Feb 23 '22 22:02 MoodyNZ