Skip to content

Commit

Permalink
Fix touch scrolling bug on official website
Browse files Browse the repository at this point in the history
  • Loading branch information
nicbarker committed Oct 12, 2024
1 parent 9a87757 commit 4ce3105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/clay-official-website/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4ce3105

Please sign in to comment.