diff options
-rw-r--r-- | src/library_sdl.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index 077f72eb..d5b2b354 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -789,6 +789,7 @@ var LibrarySDL = { } case 'touchstart': case 'touchend': case 'touchmove': { var touch = event.touch; + if (!Browser.touches[touch.identifier]) break; var w = Module['canvas'].width; var h = Module['canvas'].height; var x = Browser.touches[touch.identifier].x / w; |