Increase the touch area of an object

Description

There are objects in my GUI, which I need to expand their touchable region.- bigger than their size.- So they can be clicked easier.
AFAIK it’s possible in ver 7. but can’t find how or where I read about this feature. Any clue?

What MCU/Processor/Board and compiler are you using?

STM32F429IGT6

What LVGL version are you using?

v7.2.0

What do you want to achieve?

Increasing the touchable region of an object.

You can use this function
void lv_obj_set_size(lv_obj_t * obj, lv_coord_t w, lv_coord_t h);

Thanks, but I don’t want to increase the size of an object.
As I explained, I want to increase its touchable area. so for example if I touch up to 20 pixel below the object, It will be clicked.

You’re looking for the extended click area feature.

1 Like

Yep, that’s it. :upside_down_face:
thanks :hibiscus: