fix(roller): snap on press lost

fixes #2916
This commit is contained in:
Gabor Kiss-Vamosi
2021-12-20 15:09:26 +01:00
parent 6e00724797
commit fa9340c45f

View File

@@ -351,7 +351,7 @@ static void lv_roller_event(const lv_obj_class_t * class_p, lv_event_t * e)
roller->moved = 1; roller->moved = 1;
} }
} }
else if(code == LV_EVENT_RELEASED) { else if(code == LV_EVENT_RELEASED || code == LV_EVENT_PRESS_LOST) {
release_handler(obj); release_handler(obj);
} }
else if(code == LV_EVENT_FOCUSED) { else if(code == LV_EVENT_FOCUSED) {