Browse Source

Merge pull request #7385 from bojidar-bg/tree-range-drag-lock

Fix #7098 by not accepting right clicks while dragging the range
Rémi Verschelde 8 years ago
parent
commit
f50afe81d8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      scene/gui/tree.cpp

+ 3 - 0
scene/gui/tree.cpp

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