mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-26 13:47:12 +01:00
Stop dragging when a slider changes editability
This commit is contained in:
parent
3227a23031
commit
1fc8096770
@ -239,6 +239,10 @@ void Slider::set_ticks_on_borders(bool _tob) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Slider::set_editable(bool p_editable) {
|
void Slider::set_editable(bool p_editable) {
|
||||||
|
if (editable != p_editable) {
|
||||||
|
grab.active = false;
|
||||||
|
}
|
||||||
|
|
||||||
editable = p_editable;
|
editable = p_editable;
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user