瀏覽代碼

haptic feedback only if menu opens

fix
Michael 2 年之前
父節點
當前提交
bea6effcb7
共有 1 個文件被更改,包括 2 次插入0 次删除
  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;
+			}
 		}
 	}
 }