Forráskód Böngészése

Fix spinbox input events propagating during dragging, breaking focus

Robert Yevdokimov 9 hónapja
szülő
commit
54bdc5fc82
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      scene/gui/spin_box.cpp

+ 3 - 0
scene/gui/spin_box.cpp

@@ -120,6 +120,9 @@ LineEdit *SpinBox::get_line_edit() {
 }
 
 void SpinBox::_line_edit_input(const Ref<InputEvent> &p_event) {
+	if (drag.enabled) {
+		line_edit->accept_event();
+	}
 }
 
 void SpinBox::_range_click_timeout() {