Browse Source

Fix #7098 by not accepting right clicks while dragging the range

Bojidar Marinov 8 năm trước cách đây
mục cha
commit
d40eb1565e
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      scene/gui/tree.cpp

+ 3 - 0
scene/gui/tree.cpp

@@ -2405,6 +2405,9 @@ void Tree::_input_event(InputEvent p_event) {
 
 			}
 
+			if (range_drag_enabled)
+				break;
+
 			switch(b.button_index) {
 				case BUTTON_RIGHT:
 				case BUTTON_LEFT: {