Skip to content


fix(scroll) fire LV_EVENT_SCROLL_BEGIN in the same spot for both axes
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Jul 2, 2021
1 parent ebb9ce9 commit b158932
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/lv_obj_scroll.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,11 @@ void lv_obj_scroll_by(lv_obj_t * obj, lv_coord_t x, lv_coord_t y, lv_anim_enable
lv_anim_set_values(&a, -sy, -sy + y);
lv_anim_set_exec_cb(&a, scroll_y_anim);
lv_anim_set_path_cb(&a, lv_anim_path_ease_out);

lv_res_t res;
res = lv_event_send(obj, LV_EVENT_SCROLL_BEGIN, &a);
if(res != LV_RES_OK) return;

} else {
/*Remove pending animations*/
Expand Down

0 comments on commit b158932

Please sign in to comment.