2
0
Эх сурвалжийг харах

haptic feedback only if menu opens

fix
Michael 2 жил өмнө
parent
commit
bea6effcb7

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