Closed vuquangpham closed 1 year ago
Name | Link |
---|---|
Latest commit | 71b003216c9e65f25aadc0135332704c58be34ae |
Latest deploy log | https://app.netlify.com/sites/flickity/deploys/6377023c14a159000a1033d6 |
Deploy Preview | https://deploy-preview-8--flickity.netlify.app/ |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
Fix a bug: Wrong index
With old code, we check the current index of the slide based on input (just a number, similar to the index of
change
event).But that's the wrong index (what happens when we change the
groupCells
offlkty
to another, different to1
) andselectedIndex
is just anumber
, butis-selected
inDOM
is more than 1. So I think that theselectedIndex
that we used is just a current index offlickity dots
(fix me if I'm wrong because I haven't read the flkty source code before).So I have made a little change to make it work based on the
is-selected
position. Please check it! Many thanks.