chore(indev): explain why the timer is resumed on press in event driven mode (#8660)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Gabor Kiss-Vamosi
2025-08-15 21:57:14 +02:00
committed by GitHub
parent 953b3e3cb6
commit 5b63483236
+2
View File
@@ -1371,6 +1371,8 @@ static void indev_proc_press(lv_indev_t * indev)
indev_gesture(indev);
if(indev_reset_check(indev)) return;
/*In event driven mode resume the timer so that it can trigger long pressed and other time related events.
*As a side effect it will also call read_cb periodically in event driven mode. */
if(indev->mode == LV_INDEV_MODE_EVENT && indev->read_timer && lv_timer_get_paused(indev->read_timer)) {
lv_timer_resume(indev->read_timer);
}