From 31b3a2a3502bd55bd07173d6313535c3f8589405 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Sat, 16 Jun 2018 13:03:32 +0200 Subject: [PATCH] tabview: fix unwanted sending of tab change action on page click --- lv_objx/lv_tabview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lv_objx/lv_tabview.c b/lv_objx/lv_tabview.c index 9841676a6..2591e5549 100644 --- a/lv_objx/lv_tabview.c +++ b/lv_objx/lv_tabview.c @@ -691,7 +691,7 @@ static void tabpage_press_lost_handler(lv_obj_t * tabview, lv_obj_t * tabpage) if(tab_cur < ext->tab_cnt - 1) tab_cur++; } - lv_tabview_set_tab_act(tabview, tab_cur, true); + if(tab_cur != ext->tab_cur) lv_tabview_set_tab_act(tabview, tab_cur, true); } /**