metafizzy / flickity

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

Flickity v2.3.0 does not resize properly if browser size is changed during a slide transition #1223

Closed dylanfisher closed 1 year ago

dylanfisher commented 2 years ago

Flickity v2.3.0 doesn't resize carousels in the same way as v.2.2.0, and if a user resizes their window while a slide transition is in progress, the correct size is not recalculated after the transition. This is apparent in autoplaying carousels.

Test case showing incorrect behavior in 2.3.0 https://codepen.io/dylanfisher/pen/JjpbEqe

Test case showing correct behavior in 2.2.0 https://codepen.io/dylanfisher/pen/MWQbJMO

Possibly related to 1202

BTW, thanks for an amazing plugin. I've used Flickity since at least 2015 on dozens of sites!

desandro commented 1 year ago

Thanks for reporting this issue. Yeah this looks like #1202. I'm closing here as a duplicate so we can track there.