New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thumbnail Navigation Issue With Click Events. #2934
Comments
I think this isn't a bug. In your video I can see that when click doesn't work you are actually dragging the whole slider and this is why it's not working. Because swiper detects click or drag and when you click you move your mouse by for example 1px and swiper think it's dragging, not clicking. |
Thanks for the response @max-ci . Please see my comment above in "What you did". On the version I have locally, I am not using If you're saying the dragging is the issue, I cannot seem to find an API setting that allows me to disable that all together on thumbs. |
Yeah, I see now, there should be some workaround for that or an option. I'll try to dig into it later. |
There is an If you set it to for example 1000 your slider won't be moving and you will be able to click even if you drag the mouse. |
@max-ci That did the trick! Thank you so much. It was a tad confusing going through those params, but it makes sense now. Kudos to you my friend! |
I'm having this exact same problem (except my stationary thumbs are vertical) and I cannot for the life of me figure out how setting |
Hi @tshamz, |
This is a (multiple allowed):
bug
enhancement
feature-discussion (RFC)
Swiper Version: 4.4.6.
Platform/Target and Browser Versions: macOS, Windows, IOS, ANDROID
Live Link: http://idangero.us/swiper/demos/300-thumbs-gallery.html
What you did
You can see my interaction pattern with your demo here: http://p.tri.be/l7Lv4d (this was performed in MacOS 10.14.2 and Chrome 71.0.3578.98).
Here's the demo currently on your site. http://idangero.us/swiper/demos/300-thumbs-gallery.html
This issue happens with and without centerSlides as well on my local version.
Expected Behavior
When I click on a thumbnail, it should immediately change the slide of the main slider to the index of the clicked thumbnail.
Actual Behavior
When I click on a thumbnail, it takes 2-3 times to trigger click event. It appears that there is something impeding the propagation of click events in thumbnail controlled sliders. However, when I use the next/prev buttons on the main slider, the thumbnails are working fine.
The text was updated successfully, but these errors were encountered: