feat(indev): send LV_EVENT_PRESS_LOST on release with wait_until_release

related to #3211
This commit is contained in:
Gabor Kiss-Vamosi
2022-05-10 19:29:06 +02:00
parent 8d3c41d517
commit cc18518e96

View File

@@ -955,6 +955,9 @@ static void indev_proc_press(_lv_indev_proc_t * proc)
static void indev_proc_release(_lv_indev_proc_t * proc)
{
if(proc->wait_until_release != 0) {
lv_event_send(proc->types.pointer.act_obj, LV_EVENT_PRESS_LOST, indev_act);
if(indev_reset_check(proc)) return;
proc->types.pointer.act_obj = NULL;
proc->types.pointer.last_obj = NULL;
proc->pr_timestamp = 0;