From d543917c037d123b025f7762ada0d2493e5e8fe4 Mon Sep 17 00:00:00 2001 From: thebestnom Date: Tue, 8 Dec 2020 23:51:45 +0200 Subject: [PATCH] Android: fix mouse capture relative wrong --- platform/android/display_server_android.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/platform/android/display_server_android.cpp b/platform/android/display_server_android.cpp index 4d6634256d93..8711a4333ce0 100644 --- a/platform/android/display_server_android.cpp +++ b/platform/android/display_server_android.cpp @@ -725,7 +725,6 @@ void DisplayServerAndroid::process_mouse_event(int input_device, int event_actio ev->set_global_position(hover_prev_pos); ev->set_relative(event_pos); } - ev->set_relative(event_pos - hover_prev_pos); ev->set_button_mask(event_buttons_mask); Input::get_singleton()->accumulate_input_event(ev); } break;