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 Canvas Slider Handle Positioning and Impose MinMax Limits to Slider Value #549

Conversation

marlenaklein-msft
Copy link
Contributor

@marlenaklein-msft marlenaklein-msft commented Nov 10, 2023

Implement fixes related to setting the slider value programmatically: canvas slider handle calculations now use canvas positioning, aligning with fillVisual. Issue and workaround reported by @anonymous2585, #523.

Also adds a check to limit Slider value within the range of min and max values, removes arbitrary prefab value.

@ms-RistoRK
Copy link
Contributor

LGTM, ship it!

@AMollis AMollis added Package: UX Components The Project ux components package is impacted by this issue. Package: UX Core The Project ux core package is impacted by this issue. labels Nov 10, 2023
Copy link
Contributor

@AMollis AMollis left a comment

Choose a reason for hiding this comment

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

@AMollis
Copy link
Contributor

AMollis commented Nov 10, 2023

Since you're change uxcomponents...please update its patch number to 3.0.1

https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity/blob/main/com.microsoft.mrtk.uxcomponents/package.json

Ugh...I was looking at the wrong package.json

@marlenaklein-msft marlenaklein-msft merged commit fb8de1f into MixedRealityToolkit:main Nov 10, 2023
4 checks passed
@anonymous2585
Copy link
Contributor

Awesome, thank you for this PR! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: UX Components The Project ux components package is impacted by this issue. Package: UX Core The Project ux core package is impacted by this issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants