소스 검색

haptic feedback only if menu opens

Michael 2 년 전
부모
커밋
c6e860720e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
 		}
 	}