Explorar o código

haptic feedback only if menu opens

Michael %!s(int64=2) %!d(string=hai) anos
pai
achega
c6e860720e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/eventsSDL/InputSourceTouch.cpp

+ 1 - 1
client/eventsSDL/InputSourceTouch.cpp

@@ -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;
 		}
 	}