1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(example): lv_example_scale_3 second scale needle was scrollable (#6320)

This commit is contained in:
Liam 2024-06-03 05:35:22 -04:00 committed by GitHub
parent 14ff25b6fb
commit 7f610bfc9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,6 +80,9 @@ void lv_example_scale_3(void)
lv_scale_set_angle_range(scale_img, 270);
lv_scale_set_rotation(scale_img, 135);
/* so the needle image cannot be scrolled*/
lv_obj_remove_flag(scale_img, LV_OBJ_FLAG_SCROLLABLE);
/* image must point to the right. E.g. -O------>*/
needle_img = lv_image_create(scale_img);
lv_image_set_src(needle_img, &img_hand);