Browse Source

haptic feedback only if menu opens

Michael 2 years ago
parent
commit
c6e860720e
1 changed files with 1 additions and 1 deletions
  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;
 		}
 	}