set the cursor object non clickable by default

Fixes: #1664
This commit is contained in:
Gabor Kiss-Vamosi
2020-07-16 13:08:18 +02:00
parent 6dac633235
commit dd56e9a013
2 changed files with 3 additions and 1 deletions

View File

@@ -26,7 +26,8 @@ Available in the `dev` branch
- `tileview` fix navigation when not screen sized - `tileview` fix navigation when not screen sized
- Use 14px font by default to for better compatibility with smaller displays - Use 14px font by default to for better compatibility with smaller displays
- `linemeter` fix conversation of current value to "level" - `linemeter` fix conversation of current value to "level"
- fix drawing on right border - Fix drawing on right border
- Set the cursor image non clickable by default
## v7.1.0 (07.07.2020) ## v7.1.0 (07.07.2020)

View File

@@ -213,6 +213,7 @@ void lv_indev_set_cursor(lv_indev_t * indev, lv_obj_t * cur_obj)
indev->cursor = cur_obj; indev->cursor = cur_obj;
lv_obj_set_parent(indev->cursor, lv_disp_get_layer_sys(indev->driver.disp)); lv_obj_set_parent(indev->cursor, lv_disp_get_layer_sys(indev->driver.disp));
lv_obj_set_pos(indev->cursor, indev->proc.types.pointer.act_point.x, indev->proc.types.pointer.act_point.y); lv_obj_set_pos(indev->cursor, indev->proc.types.pointer.act_point.x, indev->proc.types.pointer.act_point.y);
lv_obj_set_click(indev->cursor, false);
} }
#if LV_USE_GROUP #if LV_USE_GROUP