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

@@ -1,11 +1,11 @@
def event_cb(e):
# The original target of the event. Can be the buttons or the container
target = e.get_original_target_obj()
target = e.get_target_obj()
# The current target is always the container as the event is added to it
cont = e.get_target_obj()
cont = e.get_current_target_obj()
# If container was clicked do nothing
if target == cont:
return