1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

haptic feedback only if menu opens

fix
This commit is contained in:
Michael 2023-07-14 22:49:44 +02:00 committed by GitHub
parent c6e860720e
commit bea6effcb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,8 +225,10 @@ void InputSourceTouch::handleUpdate()
GH.events().dispatchShowPopup(GH.getCursorPosition());
if (GH.windows().isTopWindowPopup())
{
hapticFeedback();
state = TouchState::TAP_DOWN_LONG;
}
}
}
}