Fixed a bug where mouse button focus breaks when using multiple buttons at once.
This commit is contained in:
parent
83291eab3a
commit
fcba654bb8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue