Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(scroll) in scroll to view functions respect disabled LV_OBJ_FLAG_…
…SCROLLABLE

fixes #2730
  • Loading branch information
kisvegabor committed Oct 25, 2021
1 parent 0bab4a7 commit 9318e02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/lv_obj_scroll.c
Expand Up @@ -646,6 +646,8 @@ static void scroll_area_into_view(const lv_area_t * area, lv_obj_t * child, lv_p
lv_anim_enable_t anim_en)
{
lv_obj_t * parent = lv_obj_get_parent(child);
if(!lv_obj_has_flag(parent, LV_OBJ_FLAG_SCROLLABLE)) return;

lv_dir_t scroll_dir = lv_obj_get_scroll_dir(parent);
lv_coord_t snap_goal = 0;
lv_coord_t act = 0;
Expand Down

0 comments on commit 9318e02

Please sign in to comment.