Stop dragging when a slider changes editability
This commit is contained in:
parent
1538b870f1
commit
f6b918a1ca
1 changed files with 4 additions and 0 deletions
|
@ -241,6 +241,10 @@ void Slider::set_ticks_on_borders(bool _tob) {
|
|||
}
|
||||
|
||||
void Slider::set_editable(bool p_editable) {
|
||||
if (editable != p_editable) {
|
||||
grab.active = false;
|
||||
}
|
||||
|
||||
editable = p_editable;
|
||||
update();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue