kenwheeler / slick

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

Slick nav is moved right when it shouldn't have been #4216

Open mzvarik opened 1 year ago

mzvarik commented 1 year ago

Main slideshow has 1 slide. Secondary NAV slideshow has 3 thumbs.

If you click the 3rd thumb, and resize the window... function "prototype.setPosition" does run causing an issue --- it will position the secondary-nav 3rd thumb to left (0px) meaning that the first 2 thumbs disappear.

The way the functions are called and defined is nonsense. The boundary checks are set in other functions, and then this raw function is called with no checks allowing it to go beyond limit.