How to drag the Scrollbar(Page)?


I want to implement the way of dragging the scroll bar.

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


What do you want to achieve?

I want to implement the way of dragging the scroll bar.

What have you tried so far?

About the Scrollbar, I don’t find the method of dragging the scroll bar in the source code. I think it is necessary to create a scroll bar control, because the control can be set to drag.

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:

lv_obj_set_drag(ScrollbarControl, true);

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

The usual solution is to ensure that the scrollable container with the objects is underneath the scrollbar instead of padded away from it (like how you have it). If you really want padding then apply it to the objects within the container.

All scrolling is handled by the scrollable container, so you need that underneath the scrollbar to give the effect of what you want.

The scrollbar is only a visual indication and you cant click/drag it.
Similarly to smart phones you can scroll the list instead.

I know that the Scrollbar in Page is not a control and cannot be dragged.
Thank you for your reply.

Well, it like this, the Scrollbar is not a control, unlike the PC that can be used to slide the scroll bar.
Thank you for your reply.