Closed sercxjo closed 5 years ago
Tested on Safari. This and the previous PR both OK.
Hi there,
Thanks for contributing! Is drag
a custom attribute that you specified? Can't find anything about it. If so, it should have a data-
prefix.
Well, let it be data-behaviour="drag" what is more similar to noUiSlider https://refreshless.com/nouislider/behaviour-option/
I would suggest using a different word, that doesn't have different spelling in US English vs British/Canadian/Australian English (behavior vs behaviour). Also, if it has no other value, it should probably be a boolean attribute (like your original one was), unless you can see us adding more values to it in the future. Perhaps something like data-drag-middle
or data-drag-both
or data-drag-range
etc? Up to you!
Well, let be boolean bedata-drag-middle
as it seems to me there is no need to configure other options
I adjusted my branch so that there were no unnecessary changes in the request. Added shot description in html page
Merged, thanks!
A new feature is enabled by specifying the attribute data-drag-middle. Dragging the middle allows to simultaneously change the High and Low values, fixing the difference between them.
7
Tested on Firefox and Chrome