From 65db5c99e05f86d2ec69ebae9f1fc50fe30a3145 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Tue, 19 Apr 2022 10:11:16 +0200 Subject: [PATCH] docs(gesture): describe how prevent sending events after a gesture Related to #3211 --- docs/overview/indev.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/overview/indev.md b/docs/overview/indev.md index 528267f95..bf07faf3c 100644 --- a/docs/overview/indev.md +++ b/docs/overview/indev.md @@ -66,6 +66,8 @@ To prevent passing the gesture event to the parent from an object use `lv_obj_cl Note that, gestures are not triggered if an object is being scrolled. +If you did some action on a gesture you can call `lv_indev_wait_release(lv_indev_act())` in the event handler to prevent LVGL sending further input device related events. + ## Keypad and encoder You can fully control the user interface without a touchpad or mouse by using a keypad or encoder(s). It works similar to the *TAB* key on the PC to select an element in an application or a web page.