revert(event): use original_target and target to follow JS conventions

fixes #4050
This commit is contained in:
Gabor Kiss-Vamosi
2023-03-20 14:24:21 +01:00
parent cdcd6cf5ef
commit 1faa4c8d7a
13 changed files with 36 additions and 36 deletions

View File

@@ -9,8 +9,8 @@ static uint32_t active_index_2 = 0;
static void radio_event_handler(lv_event_t * e)
{
uint32_t * active_id = lv_event_get_user_data(e);
lv_obj_t * cont = lv_event_get_target(e);
lv_obj_t * act_cb = lv_event_get_original_target(e);
lv_obj_t * cont = lv_event_get_current_target(e);
lv_obj_t * act_cb = lv_event_get_target(e);
lv_obj_t * old_cb = lv_obj_get_child(cont, *active_id);
/*Do nothing if the container was clicked*/

View File

@@ -49,8 +49,8 @@ class LV_Example_Checkbox_2:
def radio_event_handler(self,e):
cont = e.get_target_obj()
act_cb = e.get_original_target_obj()
cont = e.get_current_target_obj()
act_cb = e.get_target_obj()
if cont == self.cont1:
active_id = self.active_index_1
else: