feat(event) pass the scroll aniamtion to LV_EVENT_SCROLL_BEGIN

Also add lv_example_tabview_2 for demonstration
This commit is contained in:
Gabor Kiss-Vamosi
2021-06-07 20:35:27 +02:00
parent 1afcd1691f
commit 5ca2528bff
8 changed files with 91 additions and 10 deletions

View File

@@ -78,7 +78,7 @@ The following event codes exist:
- `LV_EVENT_LONG_PRESSED_REPEAT` Called after `long_press_time` in every `long_press_repeat_time` ms. Not called if scrolled.
- `LV_EVENT_CLICKED` Called on release if the object not scrolled (regardless to long press)
- `LV_EVENT_RELEASED` Called in every cases when the object has been released
- `LV_EVENT_SCROLL_BEGIN` Scrolling begins
- `LV_EVENT_SCROLL_BEGIN` Scrolling begins. The event paramter is `NULL` or an `lv_anim_t *` with the scroll animation descriptor to modify if required.
- `LV_EVENT_SCROLL_END` Scrolling ends
- `LV_EVENT_SCROLL` The object was scrolled
- `LV_EVENT_GESTURE` A gesture is detected. Get the gesture with `lv_indev_get_gesture_dir(lv_indev_get_act());`