Swiper: Bug gallery with Thumbs and Two way control when centeredslides: false

Created on 12 Feb 2018  路  17Comments  路  Source: nolimits4web/swiper

This is a (multiple allowed):

  • [x] bug
  • [ ] enhancement
  • [ ] feature-discussion (RFC)
  • Swiper Version: 4.1.6
  • Platform/Target and Browser Versions: W10, Chrome & Firefox lastest version.
  • Live Link or JSFiddle/Codepen or website with isssue: http://000whpg.000webhostapp.com/

What you did

Using demo from gallery with Thumbs and 2 way control (http://idangero.us/swiper/demos/300-thumbs-gallery.html) selected centeredslides as false it doesnt work as expected

Expected Behavior

Normal function with thumbs aligned to left.

Actual Behavior

It fail when click on last thumbs.

stale

Most helpful comment

This is a big issue. We have to do a lot of workaround to achieve centeredSlides: false along with other behavior we might need to implement.

All 17 comments

Having the same issue. It is totally broken when there is only few slides on the page and thumbs fits on a screen.

same here!

Same here.

Same here! Would love to see a fix

+1

+1. solution - use Slick Slider

Slick slider uses jQuery, that's why I wanted to use this library. Using Flickity now, does the job too.

https://flickity.metafizzy.co/

replaced native controller functionality with click handler on thumb slider:

on: {
    click: function (event) {
        if (galleryThumbs.clickedIndex !== undefined) {
            galleryTop.slideTo(galleryThumbs.clickedIndex);
        }
    }
}

+1 for @alesak solution

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

any news about the issue?

Try using Flickity, does the same thing and doesn't use jquery.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

please fix the issue, dont want to move to an other library

This is a big issue. We have to do a lot of workaround to achieve centeredSlides: false along with other behavior we might need to implement.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed due to inactivity. If this issue is still actual, please, create the new one.

Was this page helpful?
0 / 5 - 0 ratings