haptic feedback only if menu opens
@@ -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;
+ }
}