summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorNathan Warden <nathan@nathanwarden.com>2017-12-16 18:34:32 -0500
committerNathan Warden <nathan@nathanwarden.com>2017-12-16 19:30:49 -0500
commitfcba654bb8bdf4e39b37628a1d46ed3e2b74692a (patch)
tree5e6664096d5ff0dfc0017cd54f20e0de9cf3f01a /scene/main
parent83291eab3ae8940cc9da159774a1da6575196c89 (diff)
Fixed a bug where mouse button focus breaks when using multiple buttons at once.
Diffstat (limited to 'scene/main')
-rw-r--r--scene/main/viewport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index f5d7043a40..9fff32a6b7 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -1640,7 +1640,7 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
if (mb->is_pressed()) {
Size2 pos = mpos;
- if (gui.mouse_focus && mb->get_button_index() != gui.mouse_focus_button) {
+ if (gui.mouse_focus && mb->get_button_index() != gui.mouse_focus_button && mb->get_button_index() == BUTTON_LEFT) {
//do not steal mouse focus and stuff