Fixed range slider rendering when value is out of range.
If the value of a ranged slider is out of range, the slider will snap to either 0% or 100%. Reduced memory label margin to preserve sufficient spacing.
This commit is contained in:
@@ -588,6 +588,12 @@ function updateRangedSlider(element, value, notch){
|
||||
|
||||
element.setAttribute('value', value)
|
||||
|
||||
if(notch < 0){
|
||||
notch = 0
|
||||
} else if(notch > 100) {
|
||||
notch = 100
|
||||
}
|
||||
|
||||
const event = new MouseEvent('change', {
|
||||
target: element,
|
||||
type: 'change',
|
||||
|
||||
Reference in New Issue
Block a user