Browse Source

Merge pull request #77242 from novalis/slider-remove-active

Stop dragging when `Slider` changes editability
Yuri Sizov 2 years ago
parent
commit
605e25656f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/gui/slider.cpp

+ 1 - 0
scene/gui/slider.cpp

@@ -294,6 +294,7 @@ void Slider::set_editable(bool p_editable) {
 	if (editable == p_editable) {
 		return;
 	}
+	grab.active = false;
 
 	editable = p_editable;
 	queue_redraw();