Skip to content

Conversation

@dgoodnow-ML
Copy link
Contributor

@dgoodnow-ML dgoodnow-ML commented Oct 17, 2024

Fixes direct-grab sliders getting stuck at the maximum value when the slider value range is not 0-1.

Remap StartSliderValue to normalized range before applying normalized interactor movement and clamping to 0-1 range

Additionally fixes issue with non-grab sliders snapping to 0 or maximum value when slider minimum value is less than 0 (not covered in issue description, found during testing)

Use minimum slider value instead of 0 as starting StartSliderValue for snapped slider manipulations

resolves #944

…er is configured for grab interaction (IsTouchable = false)
@dgoodnow-ML dgoodnow-ML force-pushed the 944-fix-grabbable-sliders branch from 8bc1f68 to da0cd07 Compare October 17, 2024 07:41
@dgoodnow-ML
Copy link
Contributor Author

I added the tests and test prefabs to the uxcore project, although they are based on the canvas slider components in the UX components package. Let me know if I should relocate the tests and supporting prefabs somewhere more appropriate.

@shaynie
Copy link
Contributor

shaynie commented Oct 18, 2024

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@shaynie
Copy link
Contributor

shaynie commented Oct 23, 2024

@AMollis, please review for tests and test locations

Signed-off-by: Kurtis <3580640+keveleigh@users.noreply.github.com>
@keveleigh keveleigh requested a review from AMollis July 16, 2025 22:42
@keveleigh keveleigh dismissed AMollis’s stale review July 16, 2025 23:49

Requested changes were made

@keveleigh keveleigh enabled auto-merge (squash) July 17, 2025 00:12
@keveleigh keveleigh merged commit 3fba916 into MixedRealityToolkit:main Jul 17, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

4 participants