Merge pull request #77245 from novalis/slider-3.5

[3.x] Stop dragging when Slider changes editability
This commit is contained in:
Rémi Verschelde 2023-05-23 19:05:29 +02:00
commit 894739109d
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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();
}