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

🚸⚡️ Slider: prevent crossing min/max, performance improved #2783

Merged
merged 4 commits into from
Feb 22, 2023

Conversation

oddvernes
Copy link
Collaborator

@oddvernes oddvernes commented Feb 15, 2023

resolves #2782

Decided preventing max and min from crossing was the easiest to implement and least confusing.
When keyboardnavigating, focus seamlessly shifts to the other thumb when they cross. With mouse the thumb stops when reaching equal value to the other thumb.

I also refactored how dynamic styles are injected to significantly improve performance of the slider and made custom props transient.

@oddvernes oddvernes changed the title ⚡️ Slider: transient props, performance improved ⚡️ Slider: prevent crossing min/max, performance improved Feb 15, 2023
@oddvernes oddvernes changed the title ⚡️ Slider: prevent crossing min/max, performance improved 🚸⚡️ Slider: prevent crossing min/max, performance improved Feb 15, 2023
@oddvernes oddvernes marked this pull request as ready for review February 15, 2023 15:01
@oddvernes oddvernes merged commit 3fb5e46 into develop Feb 22, 2023
@oddvernes oddvernes deleted the OOVE/2782-range-slider-new-behaviour branch February 22, 2023 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Range slider doesn't give [from, to] as [min, max]
2 participants