fix: prev refactor
This commit is contained in:
1 parent
3ef1540f8c
commit
486baa6e54
1 file changed
+3
-2
@@ -87,8 +87,9 @@ function clampValue(value, isPercent, min, max) {
|
||||
} else {
|
||||
if (value >= max) {
|
||||
return max;
|
||||
} else if (value <= min) {
|
||||
return min;
|
||||
}
|
||||
if (value <= min) {
|
||||
return min;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
|
||||
Reference in new issue
Block a user