I create a container and a image in the container.
And set container dragable by horisontally.
If I would like to receive current touch position for controlling another function manually,
how to set any function for the container or any advice?
Thank you.
//----------------------------------------------------------------
LV_IMG_DECLARE(img_background);
lv_obj_t *container = lv_cont_create(lv_scr_act(),NULL);
lv_obj_set_size(container,240,240);
lv_obj_set_drag(container, true);
lv_obj_set_drag_dir(container, LV_DRAG_DIR_HOR);
lv_obj_t *image = lv_img_create(container,NULL);
lv_img_set_src(image, &img_background);
//------------------------------------------------------------