Skip to content

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

@dgoodnow-ML

Description

@dgoodnow-ML

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.

Metadata

Metadata

Assignees

Labels

Type: BugA problem with an existing feature that can be fixed with the next patched release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions