Browse Source

haptic feedback only if menu opens

fix
Michael 2 years ago
parent
commit
bea6effcb7
1 changed files with 2 additions and 0 deletions
  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());
 			GH.events().dispatchShowPopup(GH.getCursorPosition());
 
 
 			if (GH.windows().isTopWindowPopup())
 			if (GH.windows().isTopWindowPopup())
+			{
 				hapticFeedback();
 				hapticFeedback();
 				state = TouchState::TAP_DOWN_LONG;
 				state = TouchState::TAP_DOWN_LONG;
+			}
 		}
 		}
 	}
 	}
 }
 }