I want to implement the way of dragging the scroll bar.
What MCU/Processor/Board and compiler are you using?
BLE MCU(ARM)
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.