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.

Slider not scrolled to active thumbnail if it visible, but not entirely

See original GitHub issue

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • Swiper Version: 4.4.6

What you did

If part of the preview is visible, then when you go to this preview (by clicking on the preview or otherwise), the preview is not shown completely.

It may be reproduced in default demo (http://idangero.us/swiper/demos/300-thumbs-gallery.html) if you move thumbs to left (50px or more) and then move to slide №5 Screenshot: https://imgur.com/a/yp8MZYw

Expected Behavior

Previews should be scrolled so that the active element is fully visible.

I think problem in watchSlidesVisibility option which thinks that the slide is visible if at least 1px on the screen. May be need watchSlidesVisibilityFull or similar option?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:5

github_iconTop GitHub Comments

1reaction
SiCoUKcommented, Jun 22, 2020

I realise this old but I have just run into the same issue, has anyone worked out how to do it?

I believe johnlewis.com use swiper and they don’t appear to have this issue.

0reactions
rameshsth08commented, Dec 18, 2020

I also have a same issue, do you guys get any solutions for it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

BXSlider thumbnail carousel is not scrolling left - Stack Overflow
I have managed to get together a thumbnail scroller which when you click on thumbnails it will slide the thumbnails to the left....
Read more >
Show or hide slide thumbnails - Microsoft Support
Show or increase the size of the slide thumbnail pane​​ On the View tab, in the Presentation Views group, click Normal. Point to...
Read more >
Scrollable content carousels. Should the scrolling experience ...
I'm in the process of designing a scrollable carousel that contains a row of thumbnail images. Around 5 thumbnail images are visible by...
Read more >
Why thumbnail rendering only happens the thumbnails are on ...
If I scroll away before a thumbnail is rendered, then it will not get rendered and will remain blury, until I do give...
Read more >
Lazy Loading Images – The Complete Guide - ImageKit.io
Lazy loading images that are not in the viewport improves initial page load ... the current document scroll top, and window height. If...
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