From cdd5128bc0e17b2ffa3f9fc8f5f133d35fca4e35 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Wed, 17 Nov 2021 12:23:17 +0100 Subject: [PATCH] docs(event) fix lv_event_get_original_target vs lv_event_get_current_target --- docs/overview/event.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/overview/event.md b/docs/overview/event.md index 9aceeff25..da443349d 100644 --- a/docs/overview/event.md +++ b/docs/overview/event.md @@ -151,8 +151,8 @@ lv_event_send(mbox, LV_EVENT_VALUE_CHANGED, &btn_id); `lv_event_t` is the only parameter passed to the event callback and it contains all data about the event. The following values can be gotten from it: - `lv_event_get_code(e)` get the event code -- `lv_event_get_target(e)` get the object to which an event was sent -- `lv_event_get_original_target(e)` get the object to which an event was originally sent (different from `lv_event_get_target` if [event bubbling](#event-bubbling) is enabled) +- `lv_event_get_current_target(e)` get the object to which an event was sent. I.e. the object whose event handler is being called. +- `lv_event_get_target(e)` get the object that originally triggered the event (different from `lv_event_get_target` if [event bubbling](#event-bubbling) is enabled) - `lv_event_get_user_data(e)` get the pointer passed as the last parameter of `lv_obj_add_event_cb`. - `lv_event_get_param(e)` get the parameter passed as the last parameter of `lv_event_send`