mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Merge pull request #2332 from Laserlicht/patch-3
haptic feedback only if menu opens
This commit is contained in:
@@ -223,10 +223,12 @@ void InputSourceTouch::handleUpdate()
|
||||
if (currentTime > lastTapTimeTicks + params.longTouchTimeMilliseconds)
|
||||
{
|
||||
GH.events().dispatchShowPopup(GH.getCursorPosition());
|
||||
hapticFeedback();
|
||||
|
||||
if (GH.windows().isTopWindowPopup())
|
||||
{
|
||||
hapticFeedback();
|
||||
state = TouchState::TAP_DOWN_LONG;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user