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.

Range slider value label changes handle position and causes jittering

See original GitHub issue

Description When the range sliders’ (most notably with step smaller than 1) handle is dragged, the numeric value label changes its size, that causes slider width change, and that causes handle position change to a slightly different value.

To Reproduce Steps to reproduce the behavior:

  1. Add a range slider to a component story with step = 0.01
  2. Interact with handle
  3. Observe prop value jittering

Expected behavior Slider stays in place while interacting with it

Screenshots

https://user-images.githubusercontent.com/6731101/110794202-cb635000-8275-11eb-8780-35a15f401d62.mov

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
shilmancommented, Jun 14, 2021

Whoopee!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.3.0-rc.5 containing PR #15145 that references this issue. Upgrade today to the @next NPM tag to try it out!

npx sb upgrade --prerelease

Closing this issue. Please re-open if you think there’s still more to do.

1reaction
DallasGalecommented, Apr 28, 2021

@shilman I am going to have to pass on this, my day dev job has been taking up all my time. Hopefully i can jump back into another issue soon though. D

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to show the value of Range Slider on the thumb of the ...
Basically, this makes it so that when the slider element receives input, the value of the CSS variable --sliderImage is changed to, for...
Read more >
A Sliding Nightmare: Understanding the Range Input
Trying (and failing) to change the value of the position property on the track in Edge. This means we may style our slider...
Read more >
<input type="range"> - HTML: HyperText Markup Language
elements of type range let the user specify a numeric value which must be no less than a given value, and no more...
Read more >
SCATTERPLOT Statement - SAS Help Center
The label positions are adjusted to prevent them from overlapping. scatter plot with marker labels. Default, No data labels are displayed.
Read more >
Praat short tutorial by - Stanford University
Change the formula to a low and high pass value (in this case I create a high ... labels you input here are...
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