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.

Finite variable width slider (that scrolls only visible slides), slides should always fill the display area

See original GitHub issue

I hope this is not a “big ask” but I’m stuck and I love your library as it has helped me a lot in the past.

Overview

My issue is that I’m trying to adjust the variable width slider (in your documentation) in order to be:

  1. finite
  2. responsive (to different viewports) (if possible to display as many slides according to viewport width)
  3. scroll only 100% visible slides
  4. slides should fill the div display area

Observations

  1. So far, I have managed to make it:

    • finite
  2. Regarding responsive, breakpoints don’t work well for variable width slides.

  3. scroll only 100% visible slides, This is very important when it comes to variable viewport width and when using variable width slides.

  4. slides should fill thedivdisplay area, finite variable width slides when they reach the last slide, even though it was already visible by the previous scroll, the user can still scroll and what is visible is a huge area of blank slides, for example: blank slides visible after last slide

The Code

The issue can be replicated and tested in code sandbox

I’m open to hear your expert solutions.

Issue Analytics

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

github_iconTop GitHub Comments

13reactions
akimycommented, Jun 10, 2019

@diegopamio any suggestion for this problem solving? variableWidth: true infinite: false, lead to blank space from the right.

I’ve just expecting last slide right border to intersect slider right border + partially view left slide. But in last right position 've full size left slide + blank space from the right.

1reaction
diegopamiocommented, Aug 21, 2018

Done, I’ve updated the PR to do that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Finite variable width slider (that scrolls only visible slides ...
reactjs - Finite variable width slider (that scrolls only visible slides), slides should always fill the display area - Stack Overflow. Stack ...
Read more >
Slider settings - General
This means, the slider background is only visible, if your slides don't have background.
Read more >
Safari Technology Preview Release Notes - Apple Developer
Fixed $0 not being displayed for the selected node after switching to another tab ... video with a lot of b-frames and a...
Read more >
Flutter Slider widgets: A deep dive with examples
maxFinite if you want to extend it to the width of the screen. Both Slider and CupertinoSlider only allow you to select a...
Read more >
ProgressBar - Android Developers
You can update the percentage of progress displayed by using the ... Restricts to ONLY indeterminate mode (state-keeping progress mode will not work)....
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