From e6fe8436f4104df3f6fe41377cc5e1ddebd0a5ce Mon Sep 17 00:00:00 2001 From: guoweilkd <35251456+guoweilkd@users.noreply.github.com> Date: Sat, 4 Jul 2020 19:30:07 +0800 Subject: [PATCH] Fix #1634: bug in `lv_tileview_scrl_signal` (#1636) --- src/lv_widgets/lv_tileview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lv_widgets/lv_tileview.c b/src/lv_widgets/lv_tileview.c index 9755b9756..9d1fec097 100644 --- a/src/lv_widgets/lv_tileview.c +++ b/src/lv_widgets/lv_tileview.c @@ -376,7 +376,7 @@ static lv_res_t lv_tileview_scrl_signal(lv_obj_t * scrl, lv_signal_t sign, void if(!ext->drag_right_en && indev->proc.types.pointer.vect.x < 0 && x < -(ext->act_id.x * w)) { lv_page_start_edge_flash(tileview, LV_PAGE_EDGE_RIGHT); - lv_obj_set_x(scrl, -ext->act_id.x * w + top); + lv_obj_set_x(scrl, -ext->act_id.x * w + left); } /*Apply the drag constraints*/