浏览代码

Fix touchid assertion faliure on emscripten

Cyao 1 年之前
父节点
当前提交
4022682c28
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/video/emscripten/SDL_emscriptenevents.c

+ 1 - 1
src/video/emscripten/SDL_emscriptenevents.c

@@ -762,7 +762,7 @@ static EM_BOOL Emscripten_HandleTouch(int eventType, const EmscriptenTouchEvent
             continue;
         }
 
-        id = touchEvent->touches[i].identifier;
+        id = touchEvent->touches[i].identifier + 1;
         if (client_w <= 1) {
             x = 0.5f;
         } else {