Thumb does not move discretely with step prop set
See original GitHub issueEnvironment
System:
OS: macOS 12.4
CPU: (10) arm64 Apple M1 Max
Memory: 474.09 MB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.0.0 - /opt/homebrew/bin/node
Yarn: 1.22.18 - /opt/homebrew/bin/yarn
npm: 8.6.0 - /opt/homebrew/bin/npm
Watchman: 2022.05.16.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8309675
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.11 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.68.2 => 0.68.2
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Description
Adding step={1}
is working in version 4.1.10, but not in 4.2.2 or 4.2.3 (I didn’t test other versions), meaning the thumb is not moving (jumping) discretely between 1*N min/max values, but instead moves continuously.
Reproducible Demo
import Slider from '@react-native-community/slider';
import React, { useState } from 'react';
const SliderComponent = () => {
const [value, setValue] = useState(0);
return (
<Slider
value={value}
step={1}
minimumValue={0}
maximumValue={5}
onValueChange={setValue}
/>
);
};
Issue Analytics
- State:
- Created a year ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Trigger Finger: Symptoms, Treatments - Cleveland Clinic
Those with trigger finger or trigger thumb may have stiffness when bending the finger(s) or hear snapping and popping when moving the finger(s)....
Read more >Trigger Finger - Trigger Thumb - OrthoInfo - AAOS
Trigger finger causes pain, stiffness, and a sensation of locking or catching when you bend and straighten your finger. The condition is also...
Read more >3 Ways to Flip Someone off with Style - wikiHow
1. Give someone the finger. There is a simple straightforwardness to the classic "flip-off." Turn the back of your fist toward someone, as...
Read more >I Think I Have a Trigger Thumb – What Can I Do About It?
With Trigger Thumb, it's very important to prevent the tendon from moving to the point where it snaps or clicks. Using a splint...
Read more >Trigger Thumb 101 | Treatment, Symptoms, Causes and ...
When this happens, the base of your fingers may lock up, click, or pop. Essentially, your fingers get stuck in a non-relaxed position....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ironbat1 Thanks for asking, I’m still working on it.
You can expect a fix (along with some other fixes in 4.2.4) somewhere this week.
I didn’t see you anywhere among Stargazers, though… 🙂
Hey @BartoszKlonowski Is 4.2.4 supposed to fix this?
I’m still seeing issue; The thumb is not dragging properly based on
step
prop value. Tapping on the slider works properlyI can provide more info if you need.