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

Fix Thumb Positioning on Web (#567) #568

Merged
merged 2 commits into from
Feb 9, 2024

Conversation

landabaso
Copy link
Contributor

This PR addresses the issue #567 where the slider thumb on web implementations would incorrectly position itself. It's specially noticeable when clicked at the extremes.

Changes:

  • Adjusted the calculation of the thumb's position in getValueFromNativeEvent to consider the thumb size.
  • Ensured the thumb remains within the bounds of the slider track.

The fix was tested with the example-web. The thumb now accurately reflects the slider value, and its position remains stable when clicked at the extremes.

Looking forward to feedback or suggestions.

@BartoszKlonowski BartoszKlonowski linked an issue Jan 3, 2024 that may be closed by this pull request
Copy link
Member

@BartoszKlonowski BartoszKlonowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks alright, thank you!

@BartoszKlonowski BartoszKlonowski merged commit 7e81a3b into callstack:main Feb 9, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with Thumb Positioning in Web Implementation
2 participants