kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.54k stars 5.89k forks source link

variableWidth scrolls past last item into whitespace #3018

Open abartov opened 7 years ago

abartov commented 7 years ago

Similar to Issue #71 - but with rtl:true. Scrolling with infinite:false was fine, but after also specifying variableWidth:true, the carousel now scrolls past the last item into whitespace. @kenwheeler - are you still maintaining this excellent component, or should I look elsewhere?

====================================================================

A reproducing JsFiddle

====================================================================

Steps to reproduce the problem

  1. Run the fiddle, scroll left.

====================================================================

What is the expected behaviour?

Slides scroll up to last one flush with the edge of the carousel, and not beyond.

====================================================================

What is observed behaviour?

Slides scroll past the last one and show a lot of whitespace.

====================================================================

More Details

leggomuhgreggo commented 7 years ago

You might try 1.7.1. There was just a PR that helped, but didn't totally solve, variableWidth: true, infinite: true

abartov commented 7 years ago

Thank you for the rapid response, @leggomuhgreggo !

I've now tried with 1.7.1, but the behavior is still the same.

bcoelhodev commented 7 years ago

Having the same issue.

abartov commented 7 years ago

Any thoughts on whether someone would be able to fix this, @leggomuhgreggo or @kenwheeler? Thanks in advance.

x35a commented 7 years ago

@abartov Seems this will not be fixed soon. You can try to fix it on your own and push MR.

bcoelhodev commented 7 years ago

I used this fix (https://github.com/kenwheeler/slick/pull/2635) but I adapted it to version 1.7.1

gauravmanerkar commented 4 years ago

Any update?