Update nouislider options for image cropper.
Previous slider min and max values caused home and end keys to behave incorrectly. Min is now 0 to reflect 0% zoom and max is now 100 to reflect max zoom. Additionally, adjusted step to 0.01 to avoid slow adjustments when using arrow keys or page up / page down keys. Issue: #15578
This commit is contained in:
committed by
Michael Latouche
parent
36402a149a
commit
ec26e5eabf
@@ -50,19 +50,11 @@ angular.module("umbraco.directives")
|
||||
|
||||
scope.sliderOptions = {
|
||||
"start": scope.dimensions.scale.current,
|
||||
"step": 0.001,
|
||||
"step": 0.01,
|
||||
"tooltips": [false],
|
||||
"format": {
|
||||
to: function (value) {
|
||||
return parseFloat(parseFloat(value).toFixed(3));
|
||||
},
|
||||
from: function (value) {
|
||||
return parseFloat(parseFloat(value).toFixed(3));
|
||||
}
|
||||
},
|
||||
"range": {
|
||||
"min": scope.dimensions.scale.min,
|
||||
"max": scope.dimensions.scale.max
|
||||
"min": 0,
|
||||
"max": 100
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user