How get x y possition on click longpress ... e callback

What do you want to achieve?

Long press on screen react by possition. Cant use objects because this blocking scroll react on object parent, that is required.
Or how setup clickable object to react scroll parrent on it…??

Could you please explain in more details what you want to achieve? Maybe some pictures?

Simply i have longpress

void in_setup_longpress(lv_event_t * e)
{

and inside require get touch

    	data->point.x 
    	data->point.y 

generated event.

And for scroll trouble try onscreen create 3xW panel and inside horizontal 3x labels.
One label is visible others is outside screen but scrollable. All works ok to point when you enable click event on label = scroll stop working.

Have you tried using the lv_indev_get_point() function?

thanks seems this works ok

1 Like