mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
indev: don't set drag_in_prog if not moved
This commit is contained in:
parent
5b150e57ab
commit
e1a4590fe3
@ -1118,6 +1118,7 @@ static void indev_drag(lv_indev_proc_t * state)
|
||||
|
||||
/*If the object didn't moved then clear the invalidated areas*/
|
||||
if(drag_obj->coords.x1 == prev_x && drag_obj->coords.y1 == prev_y) {
|
||||
state->types.pointer.drag_in_prog = 0;
|
||||
/*In a special case if the object is moved on a page and
|
||||
* the scrollable has fit == true and the object is dragged of the page then
|
||||
* while its coordinate is not changing only the parent's size is reduced */
|
||||
|
Loading…
x
Reference in New Issue
Block a user