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

@@ -213,6 +213,7 @@ void lv_indev_set_cursor(lv_indev_t * indev, lv_obj_t * cur_obj)
indev->cursor = cur_obj;
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_click(indev->cursor, false);
}
#if LV_USE_GROUP