mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
lv_ddlist: fix wrong selection on click
This commit is contained in:
parent
221e269ccb
commit
770d1e08e1
@ -788,6 +788,7 @@ static lv_res_t release_handler(lv_obj_t * ddlist)
|
||||
lv_point_t p;
|
||||
lv_indev_get_point(indev, &p);
|
||||
p.y -= ext->label->coords.y1;
|
||||
p.x -= ext->label->coords.x1;
|
||||
uint16_t letter_i;
|
||||
letter_i = lv_label_get_letter_on(ext->label, &p);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user