question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

slickGoTo doesn't scroll at index -2, -3, ...

See original GitHub issue

If I use your own example at http://jsfiddle.net/k70vendr/ on issue https://github.com/kenwheeler/slick/issues/960 and extend the slidesToShowup to 5, there I can use slickGoTo with an data-slick-index of -2 and it will be fine. But if I use the current version 1.5.9 instead of 1.4.0 then the slider doesn’t move. Look at http://jsfiddle.net/4j6a1u22/. Go on “Item 1” and then click on “Item 6”.

Do I something wrong or truly a bug?

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

6reactions
janeincommented, Apr 28, 2016

fixed in this pull-request: #2285

1reaction
1vcommented, Jun 21, 2017

Temporary fix:

var index, slickObj;

index = -2;

slickObj = $('.wrapper').slick('getSlick');

if (index <= -2) {
  index += slickObj.slideCount;
}

slickObj.slickGoTo(index);
Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular Slick slickGoTo doesn't work - Stack Overflow
I had this error: $scope.slickConfig.method.slickGoTo is not a function. My mistake: I was linking to angular.slick instead of ...
Read more >
slick - the last carousel you'll ever need - Ken Wheeler
slick is a responsive carousel jQuery plugin that supports multiple breakpoints, CSS3 transitions, touch events/swiping & much more!
Read more >
Advance To A Particular Slick Slide or Center using slickGoTo
Step 3: Now using the currentSlideIndex move the carousel item position to the current index. const carouselEl = $( '.your-carousel-parent- ...
Read more >
react-slick/README.md - UNPKG
1, # react-slick. 2. 3, [![ ... 10, * slickGoTo prop is deprecated in favor of slickGoTo method. Check this [slickGoTo usage ...
Read more >
kenwheeler/slick - Gitter
it seems like the new slide fades in but the one below doesn't also fade... so if they're not completely stacked then it'll...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found