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

v8: Add keyboard support to slider #5651

Merged

Conversation

bjarnef
Copy link
Contributor

@bjarnef bjarnef commented Jun 12, 2019

Prerequisites

  • I have added steps to test this contribution in the description below

If there's an existing issue for this PR then this fixes #3957

Description

This updates noUiSlider used as slider plugin in Umbraco to use version 13.0.0+ which has keyboard support build in.

There are no breaking changes from the current used noUiSlider version only enhancement and bug fixes.

The keyboard support might not be ideal for the slider in image cropper, because the step size in very small (a lot of steps in the range). I have suggested on the noUiSlider issue tracker to be able to set a specific step size when using keyboard in this specific case. leongersen/noUiSlider#992

Furthermore it is only possible the disable keyboard support on noUiSlider (enabled by default), but the umb-range-slider doesn't handle this at the moment. I think it is fine for now the always keep it enabled.

2019-06-12_12-10-47

@emmaburstow
Copy link
Contributor

Hello @bjarnef

Thanks for another wonderful contribution. We'll take a look and let you know if we need anything. Looks grand.

Em

@bjarnef
Copy link
Contributor Author

bjarnef commented Jun 21, 2019

Oh, now we might want to update to v14.0.0 to include a few more bug fixes, so the keyboard controls fire the change and slide events.
https://github.com/leongersen/noUiSlider/releases

@emmaburstow
Copy link
Contributor

Ah good thinking @bjarnef!

@bjarnef
Copy link
Contributor Author

bjarnef commented Jun 21, 2019

It also seems the developer liked my suggestion to control the stepsize, when using keyboard interaction 👍
leongersen/noUiSlider#992

@bjarnef
Copy link
Contributor Author

bjarnef commented Jun 24, 2019

The noUiSlider has been updated to latest v14 which only include bug fixes, where the the keyboard controls fire the change and slide events https://github.com/leongersen/noUiSlider/releases

@nul800sebastiaan nul800sebastiaan merged commit 5333b23 into umbraco:v8/dev Jun 27, 2019
@nul800sebastiaan
Copy link
Member

Works beautifully! Thanks very much @bjarnef 👍

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.

Add keyboard support for slider
3 participants