diff --git a/docs/changes.md b/docs/changes.md index ddc299294..1379dea3e 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -2,6 +2,7 @@ * 2019/11/18 * 完善hscroll label,在only\_parent\_focus为TRUE时,根据父控件设置自己的focus状态。 + * 完善list item (感谢朝泽提供补丁)。 * 2019/11/16 * 完善文档。 diff --git a/src/ext_widgets/scroll_view/list_item.c b/src/ext_widgets/scroll_view/list_item.c index 2ebffbad0..2e4abb028 100644 --- a/src/ext_widgets/scroll_view/list_item.c +++ b/src/ext_widgets/scroll_view/list_item.c @@ -56,6 +56,7 @@ static ret_t list_item_remove_timer(widget_t* widget) { return_value_if_fail(list_item != NULL, RET_BAD_PARAMS); if (list_item->timer_id != TK_INVALID_ID) { + widget_off_by_func(widget->parent, EVT_POINTER_UP, list_item_on_parent_pointer_up, widget); timer_remove(list_item->timer_id); list_item->timer_id = TK_INVALID_ID; }