From 7f610bfc9d0ea043ad5cadfd8438f5215495995e Mon Sep 17 00:00:00 2001 From: Liam <30486941+liamHowatt@users.noreply.github.com> Date: Mon, 3 Jun 2024 05:35:22 -0400 Subject: [PATCH] fix(example): lv_example_scale_3 second scale needle was scrollable (#6320) --- examples/widgets/scale/lv_example_scale_3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/widgets/scale/lv_example_scale_3.c b/examples/widgets/scale/lv_example_scale_3.c index 25d038daa..e77915bd8 100644 --- a/examples/widgets/scale/lv_example_scale_3.c +++ b/examples/widgets/scale/lv_example_scale_3.c @@ -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);