I want to achieve this effect:
When I keep clicking on a button object with the mouse, if there is a moving position, do not update the click effect. I want to know if there is a good way to achieve this?
In other words, when move the position on the button, the style LV_BTN_STATE_PR is not refreshed, when click the button without moving, the style LV_BTN_STATE_PR is refreshed.
I don’t completely understand what you’re trying to achieve here. It sounds like you are asking for the button’s state to not change while you are dragging it?
I’m also not sure I understand correctly but buttons lose their pressed state only when they are dragged. So without lv_obj_set_drag(btn, true) they should keep the presses state even if you move your finger/mouse on them while pressing.
When the button(list item object) is dragging on pressing, I dont’s want to refresh the button pressed state, but when click the button without dragging, it should keep the pressed state.
There is no configuration option for it right now.
What advantage do you see in “keeping pressed while scrolling” behavior?
If we find it better it can be changed in the library.