Skip to content

Commit 4ce3105

Browse files
committed
Fix touch scrolling bug on official website
1 parent 9a87757 commit 4ce3105

File tree

1 file changed

+1
-1
lines changed
  • examples/clay-official-website

1 file changed

+1
-1
lines changed

examples/clay-official-website/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ CLAY_WASM_EXPORT("UpdateDrawFrame") Clay_RenderCommandArray UpdateDrawFrame(floa
395395

396396
Clay__debugViewHighlightColor = (Clay_Color) {105,210,231, 120};
397397

398-
Clay_SetPointerState((Clay_Vector2) {mousePositionX, mousePositionY}, isMouseDown);
398+
Clay_SetPointerState((Clay_Vector2) {mousePositionX, mousePositionY}, isMouseDown || isTouchDown);
399399

400400
if (!isMouseDown) {
401401
scrollbarData.mouseDown = false;

0 commit comments

Comments
 (0)