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 off by one error in SliderItem #1356

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

abdurisaq
Copy link
Contributor

@abdurisaq abdurisaq commented Oct 22, 2024

Small error with how sliders are implemented that i noticed when trying to implement other changes. steps should be 1 less than the amount of steps you want if you are defining min and max, because steps takes in the amount of inner steps excluding the lowest and highest. as it is now if the slider passes the middle step, its starts skipping by 2 whenever decrementing.

(added a dummy slider so its easier to see, not in the code pushed)
example of slider now
https://github.com/user-attachments/assets/8d4231c0-411b-427f-a134-7a24278c1d8a

example of slider fixed

(https://github.com/user-attachments/assets/6e1a5ca8-c063-4c3e-b187-0f9972c77bb9)

@AntsyLich AntsyLich enabled auto-merge (squash) October 24, 2024 12:53
@AntsyLich AntsyLich merged commit 2ba7ed3 into mihonapp:main Oct 24, 2024
1 check passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants