mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-25 21:38:59 +02:00
haptic feedback only if menu opens
This commit is contained in:
parent
9ef959a7f8
commit
c6e860720e
@ -223,9 +223,9 @@ void InputSourceTouch::handleUpdate()
|
||||
if (currentTime > lastTapTimeTicks + params.longTouchTimeMilliseconds)
|
||||
{
|
||||
GH.events().dispatchShowPopup(GH.getCursorPosition());
|
||||
hapticFeedback();
|
||||
|
||||
if (GH.windows().isTopWindowPopup())
|
||||
hapticFeedback();
|
||||
state = TouchState::TAP_DOWN_LONG;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user