Browse Source

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

Bojidar Marinov 8 years ago
parent
commit
d40eb1565e
1 changed files with 3 additions and 0 deletions
  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: {