From 27a801df991279967a611983313efcf35a77949a Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Wed, 28 Dec 2016 23:20:54 +0200 Subject: [PATCH] Fix #7098 by not accepting right clicks while dragging the range (cherry picked from commit d40eb1565ed5a9cae29fa83561b42566119b2b7d) --- scene/gui/tree.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index e34fa2a12cc..e6be5d5f415 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -2388,6 +2388,9 @@ void Tree::_input_event(InputEvent p_event) { } + if (range_drag_enabled) + break; + switch(b.button_index) { case BUTTON_RIGHT: case BUTTON_LEFT: {