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

[BUG] Non-touchable slider sticks at maximum value when direct grabbed and maximum value greater than 1 #944

Open
dgoodnow-ML opened this issue Oct 17, 2024 · 0 comments · May be fixed by #945
Assignees
Labels
Type: Bug A problem with an existing feature that can be fixed with the next patched release.

Comments

@dgoodnow-ML
Copy link

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:

  1. Create a Slider.
  2. Uncheck 'Is Touchable'
  3. Set the Max Value field to a value greater than 1 (e.g. 10)
  4. While running the application, grab the interactor directly
  5. 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)

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.

@dgoodnow-ML dgoodnow-ML added Needs: Triage Needs to be triaged. Type: Bug A problem with an existing feature that can be fixed with the next patched release. labels Oct 17, 2024
@shaynie shaynie removed the Needs: Triage Needs to be triaged. label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug A problem with an existing feature that can be fixed with the next patched release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants