From d40eb1565ed5a9cae29fa83561b42566119b2b7d Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Wed, 28 Dec 2016 23:20:54 +0200 Subject: Fix #7098 by not accepting right clicks while dragging the range --- scene/gui/tree.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scene') diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index d974e09275..06ba8314e0 100644 --- a/scene/gui/tree.cpp +++ b/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: { -- cgit v1.2.3