Skip to content

Commit

Permalink
tileview: call drag_end_handler only if it was dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Dec 21, 2019
1 parent 1441601 commit 7175231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lv_objx/lv_tileview.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,9 @@ static void tileview_scrl_event_cb(lv_obj_t * scrl, lv_event_t event)
lv_tileview_ext_t * ext = lv_obj_get_ext_attr(tileview);
if(lv_indev_is_dragging(indev) && (ext->drag_hor || ext->drag_ver)) {
indev->proc.types.pointer.drag_in_prog = 0;
drag_end_handler(tileview);
}

drag_end_handler(tileview);
}
}

Expand Down

0 comments on commit 7175231

Please sign in to comment.