From 4ce3105f588310fd09143a2c831eda48f07dbbc5 Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Sat, 12 Oct 2024 13:16:25 +1300 Subject: [PATCH] Fix touch scrolling bug on official website --- examples/clay-official-website/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/clay-official-website/main.c b/examples/clay-official-website/main.c index f80c075..fee4791 100644 --- a/examples/clay-official-website/main.c +++ b/examples/clay-official-website/main.c @@ -395,7 +395,7 @@ CLAY_WASM_EXPORT("UpdateDrawFrame") Clay_RenderCommandArray UpdateDrawFrame(floa Clay__debugViewHighlightColor = (Clay_Color) {105,210,231, 120}; - Clay_SetPointerState((Clay_Vector2) {mousePositionX, mousePositionY}, isMouseDown); + Clay_SetPointerState((Clay_Vector2) {mousePositionX, mousePositionY}, isMouseDown || isTouchDown); if (!isMouseDown) { scrollbarData.mouseDown = false;