kenwheeler / slick

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

Bug in slick.min.js #3534

Open barbaris-in opened 6 years ago

barbaris-in commented 6 years ago

Bug in slick.min.js (slick.js works well)

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

Use this jsfiddle to reproduce bug: https://jsfiddle.net/barbaris/bx4dmu19/8/ If you click prev / next buttons images in bottom carousel will be moved.

Here is the same page with not minimized JS https://jsfiddle.net/barbaris/bx4dmu19/7/

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

Steps to reproduce the problem

  1. Click next / prev buttons on both pages
  2. On page with minimized slick.min.js nav carousel moves.

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

What is the expected behaviour?

Navigation carousel should not move if number of slides is less then slidesToShow parameter

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

What is observed behaviour?

When I use minimized slick.min.js file transform style is updated for nav carousel

transform: translate3d(-100px, 0px, 0px);

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

More Details

Regards,

Alex.

henrymcc commented 6 years ago

Yeah i came across the exact same issue today. Can confirm using unminified Slick.js resolved issue for me too. I minified the Slick.js myself and it also works. Must be the way Slick.min.js is being minified?

Cheers, Henry