A question about text range of slider


I used the slider example, modifying its range and position.And I set the range from 0 to 20,000.When I drag the knob to the maximum, keep dragging, and it will go back to the minimum.

What MCU/Processor/Board and compiler are you using?


What LVGL version are you using?


What do you want to achieve?

When I drag the knob to the maximum, keep dragging,its value stays the same.

What have you tried so far?

When I used version 7.11.0, it had the same problem.
video.zip (1.6 MB)

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/
static void slider_event_cb(lv_obj_t * slider, lv_event_t event);
static lv_obj_t * slider_label;

void lv_ex_slider_2(void)
	/* Create a slider in the center of the display */
	lv_obj_t * slider = lv_slider_create(lv_scr_act(), NULL);
	lv_obj_set_width(slider, LV_DPI * 2);
	lv_obj_align(slider, NULL, LV_ALIGN_CENTER, -200, 0);
	lv_obj_set_event_cb(slider, slider_event_cb);
	lv_slider_set_range(slider, 0, 20000);
	/* Create a label below the slider */
	slider_label = lv_label_create(lv_scr_act(), NULL);
	lv_label_set_text(slider_label, "0");
	lv_obj_set_auto_realign(slider_label, true);
	lv_obj_align(slider_label, slider, LV_ALIGN_OUT_BOTTOM_MID, 0, 10);
	/* Create an informative label */
	lv_obj_t * info = lv_label_create(lv_scr_act(), NULL);
	lv_label_set_text(info, "Welcome to the slider+label demo!\n"
							"Move the slider and see that the label\n"
							"updates to match it.");
	lv_obj_align(info, NULL, LV_ALIGN_IN_TOP_LEFT, 10, 10);

static void slider_event_cb(lv_obj_t * slider, lv_event_t event)
	if(event == LV_EVENT_VALUE_CHANGED) {
		static char buf[6]; /* max 3 bytes for number plus 1 null terminating byte */
		snprintf(buf, 6, "%u", lv_slider_get_value(slider));
		lv_label_set_text(slider_label, buf);

## Screenshot and/or video
If possible, add screenshots and/or videos about the current state.
The video is in the zip file.
[video.zip|attachment](upload://4eXXPusZuEYca70yq5D2yptUqiM.zip) (1.6 MB)

Is anyone here? I need your help.