diff options
| author | Ray <[email protected]> | 2023-07-10 19:13:53 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-07-10 19:13:53 +0200 |
| commit | b807c590cb7eda1cca26546c96aba2494b6c1e65 (patch) | |
| tree | 15ab3743e0338fe7ba75e4f6c60167105fa0fd64 /src | |
| parent | 0b9fae3c539161e850db9092ac7294f889583e82 (diff) | |
| parent | 4b6cbd234040312091e24085ee929a7cec60faac (diff) | |
| download | raylib-b807c590cb7eda1cca26546c96aba2494b6c1e65.tar.gz raylib-b807c590cb7eda1cca26546c96aba2494b6c1e65.zip | |
Merge branch 'master' of https://github.com/raysan5/raylib
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcore.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rcore.c b/src/rcore.c index e98734ad..6fd7a4fe 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -6139,6 +6139,9 @@ static EM_BOOL EmscriptenTouchCallback(int eventType, const EmscriptenTouchEvent // Gesture data is sent to gestures system for processing ProcessGestureEvent(gestureEvent); + + // Reset the pointCount for web, if it was the last Touch End event + if (eventType == EMSCRIPTEN_EVENT_TOUCHEND && CORE.Input.Touch.pointCount == 1) CORE.Input.Touch.pointCount = 0; #endif return 1; // The event was consumed by the callback handler |
