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.

Thumb does not move discretely with step prop set

See original GitHub issue

Environment

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:closed
  • Created a year ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
BartoszKlonowskicommented, Jun 27, 2022

@ironbat1 Thanks for asking, I’m still working on it.

I plan to deliver the fix in the upcoming week, thank you for you patience!

You can expect a fix (along with some other fixes in 4.2.4) somewhere this week.


I really appreciate the work you are doing! Thank you so much.

I didn’t see you anywhere among Stargazers, though… 🙂

1reaction
dhmoon91commented, Jul 14, 2022

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 properly

I can provide more info if you need.

Read more comments on GitHub >

github_iconTop 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 >

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