-
Notifications
You must be signed in to change notification settings - Fork 161
Closed
Labels
Type: BugA problem with an existing feature that can be fixed with the next patched release.A problem with an existing feature that can be fixed with the next patched release.
Description
Describe the bug
When a Slider component is configured as non-touchable (IsTouchable = false) and the maximum value of the slider range is greater than 1, the slider will jump and stick to the end of the slider track when the slider handle exceeds 1.
To reproduce
Steps to reproduce the behavior:
- Create a Slider.
- Uncheck 'Is Touchable'
- Set the Max Value field to a value greater than 1 (e.g. 10)
- While running the application, grab the interactor directly
- Manipulate the slider, particularly to the right portion of the slider track
- The slider handle will be stuck at the far right end of the track/maximum value, and subsequent grabs cannot move the slider handle to the left.
Expected behavior
The slider handle should not stick to the far right/maximum value of the slider track when directly grabbed with a grab interactor.
Screenshots
If applicable, add screenshots to help explain your problem.
Your setup (please complete the following information)
- Unity Version 2021.3.21f1, 6000.0.15f1
- Commit e25a7a81
Target platform (please complete the following information)
- Magic Leap
- OpenXR
Additional context
I have a fix, this is related to using normalized vs unnormalized values in the slider class for grab interactors. Working through tests then will submit a PR.
Metadata
Metadata
Assignees
Labels
Type: BugA problem with an existing feature that can be fixed with the next patched release.A problem with an existing feature that can be fixed with the next patched release.