From 71bc457d39f7bea871995d9cfb32b6b69c7ca322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wladislav=20=E3=83=B4=E3=83=A9=E3=83=89=20Artsimovich?= Date: Mon, 26 Jun 2023 19:37:51 +0900 Subject: [PATCH] Update nuklear.h --- nuklear.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nuklear.h b/nuklear.h index b06753f..e4afef4 100644 --- a/nuklear.h +++ b/nuklear.h @@ -17898,6 +17898,10 @@ nk_input_button(struct nk_context *ctx, enum nk_buttons id, int x, int y, nk_boo btn->clicked_pos.y = (float)y; btn->down = down; btn->clicked++; + + /* Fix Click-Drag for touch events. */ + in->mouse.delta.x = 0; + in->mouse.delta.y = 0; #ifdef NK_BUTTON_TRIGGER_ON_RELEASE if (down == 1 && id == NK_BUTTON_LEFT) {