mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Fix setting central value
This commit is contained in:
parent
0fa32c3c16
commit
d0c8b05314
1 changed files with 8 additions and 0 deletions
|
@ -443,6 +443,14 @@ Item
|
|||
UM.LayerView.setMinimumLayer(lower_value);
|
||||
}
|
||||
}
|
||||
function setValue(value)
|
||||
{
|
||||
var range = upperHandle.value - lowerHandle.value;
|
||||
value = Math.min(value, slider.maximumValue);
|
||||
value = Math.max(value, slider.minimumValue + range);
|
||||
UM.LayerView.setCurrentLayer(value);
|
||||
UM.LayerView.setMinimumLayer(value - range);
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue