Merge fa49f35b14 into dev
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
- fix(textarea) support Arabic letter connections
|
- fix(textarea) support Arabic letter connections
|
||||||
- fix(dropdown) support Arabic letter connections
|
- fix(dropdown) support Arabic letter connections
|
||||||
- fix(value_str) support Arabic letter connections in value string property
|
- fix(value_str) support Arabic letter connections in value string property
|
||||||
|
- fix(indev) in LV_INDEV_TYPE_BUTTON recognize 1 cycle long presses too
|
||||||
|
|
||||||
## v7.7.2 (17.11.2020)
|
## v7.7.2 (17.11.2020)
|
||||||
### Bugfixes
|
### Bugfixes
|
||||||
|
|||||||
@@ -788,18 +788,27 @@ static void indev_button_proc(lv_indev_t * i, lv_indev_data_t * data)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
i->proc.types.pointer.act_point.x = i->btn_points[data->btn_id].x;
|
lv_coord_t x = i->btn_points[data->btn_id].x;
|
||||||
i->proc.types.pointer.act_point.y = i->btn_points[data->btn_id].y;
|
lv_coord_t y = i->btn_points[data->btn_id].y;
|
||||||
|
|
||||||
/*Still the same point is pressed*/
|
|
||||||
if(i->proc.types.pointer.last_point.x == i->proc.types.pointer.act_point.x &&
|
|
||||||
i->proc.types.pointer.last_point.y == i->proc.types.pointer.act_point.y && data->state == LV_INDEV_STATE_PR) {
|
|
||||||
indev_proc_press(&i->proc);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
/*If a new point comes always make a release*/
|
/*If a new point comes always make a release*/
|
||||||
|
if(data->state == LV_INDEV_STATE_PR) {
|
||||||
|
if(i->proc.types.pointer.last_point.x != x ||
|
||||||
|
i->proc.types.pointer.last_point.y != y) {
|
||||||
indev_proc_release(&i->proc);
|
indev_proc_release(&i->proc);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(indev_reset_check(&i->proc)) return;
|
||||||
|
|
||||||
|
/*Save the new points*/
|
||||||
|
i->proc.types.pointer.act_point.x = x;
|
||||||
|
i->proc.types.pointer.act_point.y = y;
|
||||||
|
|
||||||
|
if(data->state == LV_INDEV_STATE_PR) indev_proc_press(&i->proc);
|
||||||
|
else indev_proc_release(&i->proc);
|
||||||
|
|
||||||
|
if(indev_reset_check(&i->proc)) return;
|
||||||
|
|
||||||
i->proc.types.pointer.last_point.x = i->proc.types.pointer.act_point.x;
|
i->proc.types.pointer.last_point.x = i->proc.types.pointer.act_point.x;
|
||||||
i->proc.types.pointer.last_point.y = i->proc.types.pointer.act_point.y;
|
i->proc.types.pointer.last_point.y = i->proc.types.pointer.act_point.y;
|
||||||
|
|||||||
Reference in New Issue
Block a user