feat(examples): fix examples and add new scroll examples

This commit is contained in:
Gabor Kiss-Vamosi
2021-02-23 11:31:10 +01:00
parent 1442a0f8bc
commit 00b1c80d3c
7 changed files with 156 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ static void event_cb(lv_obj_t * chart, lv_event_t e)
}
else if(e == LV_EVENT_DRAW_POST_END) {
int32_t id = lv_chart_get_pressed_point(chart);
if(id < 0) return;
if(id == LV_CHART_POINT_ID_NONE) return;
LV_LOG_USER("Selected point %d\n", id);