Ver código fonte

haptic feedback only if menu opens

fix
Michael 2 anos atrás
pai
commit
bea6effcb7
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      client/eventsSDL/InputSourceTouch.cpp

+ 2 - 0
client/eventsSDL/InputSourceTouch.cpp

@@ -225,8 +225,10 @@ void InputSourceTouch::handleUpdate()
 			GH.events().dispatchShowPopup(GH.getCursorPosition());
 
 			if (GH.windows().isTopWindowPopup())
+			{
 				hapticFeedback();
 				state = TouchState::TAP_DOWN_LONG;
+			}
 		}
 	}
 }