Fix the touch event filtering to not filter out touch events in the case of mouse control being enabled

Problem reported by Haze, thanks!
This commit is contained in:
Henrik Rydgård
2025-08-05 08:35:34 +02:00
parent a138133bec
commit 6c30bded38
+1 -1
View File
@@ -1151,7 +1151,7 @@ void EmuScreen::touch(const TouchInput &touch) {
if (!ImGui::GetIO().WantCaptureMouse) {
UIScreen::touch(touch);
}
} else if (g_Config.bMouseControl && !(touch.flags & TOUCH_UP)) {
} else if (g_Config.bMouseControl && !(touch.flags & TOUCH_UP) && (touch.flags & TOUCH_MOUSE)) {
// don't do anything as the mouse pointer is hidden in this case.
// But we let touch-up events through to avoid getting stuck if the user toggles mouse control.
} else {