Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider jumps if you tap it #21103

Closed
3 tasks done
aalzanki opened this issue Sep 13, 2018 · 5 comments
Closed
3 tasks done

Slider jumps if you tap it #21103

aalzanki opened this issue Sep 13, 2018 · 5 comments
Labels
Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@aalzanki
Copy link

aalzanki commented Sep 13, 2018

Environment

[skip envinfo]
I'm running on iPhone SE, iOS 11.4, RN version 0.57.

Description

If you tap the circle of a slider, you'll see it jump. It seems like the slider might not be calculating the delta between the touch's position and the position of the circle at the start of the drag. It's a lot more noticeable in the simulator than on device.

Reproducible Demo

https://snack.expo.io/rJnz7mOOQ

@react-native-bot react-native-bot added the Platform: iOS iOS applications. label Sep 13, 2018
@react-native-bot

This comment has been minimized.

@hramos hramos added Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. and removed 📋No Environment Info labels Sep 13, 2018
@hramos
Copy link
Contributor

hramos commented Sep 13, 2018

Thanks for the repro. This is what it looks like:

ezgif-5-89181f93a6

@hramos hramos changed the title Slider jumps if you tap it [iOS] Slider jumps if you tap it Sep 13, 2018
@zhongwuzw
Copy link
Contributor

@aalzanki , It's a bug of iOS, which means UISlider has this issue, you can try set a thumbImage explicitly like below to fix:

<Slider style={{width: 300}} thumbImage={require('./thumb.png')}/>

@stale
Copy link

stale bot commented Dec 15, 2018

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Dec 15, 2018
@stale
Copy link

stale bot commented Dec 23, 2018

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Dec 23, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Dec 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

4 participants