summaryrefslogtreecommitdiffhomepage
path: root/src/rcore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rcore.c')
-rw-r--r--src/rcore.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 6fd7a4fe..45495bb1 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -5593,8 +5593,14 @@ static void MouseButtonCallback(GLFWwindow *window, int button, int action, int
gestureEvent.position[0].y /= (float)GetScreenHeight();
// Gesture data is sent to gestures-system for processing
+#if defined(PLATFORM_WEB)
+ // Prevent calling ProcessGestureEvent() when Emscripten is present and there's a touch gesture, so EmscriptenTouchCallback() can handle it itself
+ if (GetMouseX() != 0 || GetMouseY() != 0) ProcessGestureEvent(gestureEvent);
+#else
ProcessGestureEvent(gestureEvent);
#endif
+
+#endif
}
// GLFW3 Cursor Position Callback, runs on mouse move