Send proper tile ID in tileview VALUE_CHANGED event

This commit is contained in:
embeddedt
2020-02-14 10:06:44 -05:00
committed by GitHub
parent 40e2da1905
commit 36a4307930

View File

@@ -225,6 +225,7 @@ void lv_tileview_set_tile_act(lv_obj_t * tileview, lv_coord_t x, lv_coord_t y, l
for(tile_id = 0; tile_id < ext->valid_pos_cnt; tile_id++) {
if(ext->valid_pos[tile_id].x == x && ext->valid_pos[tile_id].y == y) {
valid = true;
break;
}
}