From f72917d9d9db3990e8de2e2090497720c348998c Mon Sep 17 00:00:00 2001 From: xianjimli Date: Tue, 7 May 2019 14:02:49 +0800 Subject: [PATCH] fix slide_menu_on_event --- src/ext_widgets/slide_menu/slide_menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ext_widgets/slide_menu/slide_menu.c b/src/ext_widgets/slide_menu/slide_menu.c index 3829d0a82..65efd41a6 100644 --- a/src/ext_widgets/slide_menu/slide_menu.c +++ b/src/ext_widgets/slide_menu/slide_menu.c @@ -517,7 +517,7 @@ static ret_t slide_menu_on_event(widget_t* widget, event_t* e) { return_value_if_fail(widget != NULL && slide_menu != NULL, RET_BAD_PARAMS); if (slide_menu->wa != NULL) { - return RET_OK; + return RET_STOP; } switch (type) { @@ -553,7 +553,7 @@ static ret_t slide_menu_on_event(widget_t* widget, event_t* e) { break; } - return RET_OK; + return RET_STOP; } TK_DECL_VTABLE(slide_menu) = {.size = sizeof(slide_menu_t),