From 7aa7aa2620c642a3c576516dae69effbf4788b79 Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Tue, 28 Jun 2022 12:52:21 +0900 Subject: [PATCH] TizenViewElementary: Fix target object of event_callback_del (#303) Changed the target object, because events are registered in event_layer_. --- shell/platform/tizen/tizen_view_elementary.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/shell/platform/tizen/tizen_view_elementary.cc b/shell/platform/tizen/tizen_view_elementary.cc index 083beb9f343d3..0ce00510351c5 100644 --- a/shell/platform/tizen/tizen_view_elementary.cc +++ b/shell/platform/tizen/tizen_view_elementary.cc @@ -264,21 +264,21 @@ void TizenViewElementary::RegisterEventHandlers() { void TizenViewElementary::UnregisterEventHandlers() { evas_object_event_callback_del( - image_, EVAS_CALLBACK_MOUSE_DOWN, + event_layer_, EVAS_CALLBACK_MOUSE_DOWN, evas_object_callbacks_[EVAS_CALLBACK_MOUSE_DOWN]); evas_object_event_callback_del( - image_, EVAS_CALLBACK_MOUSE_UP, + event_layer_, EVAS_CALLBACK_MOUSE_UP, evas_object_callbacks_[EVAS_CALLBACK_MOUSE_UP]); evas_object_event_callback_del( - image_, EVAS_CALLBACK_MOUSE_MOVE, + event_layer_, EVAS_CALLBACK_MOUSE_MOVE, evas_object_callbacks_[EVAS_CALLBACK_MOUSE_MOVE]); evas_object_event_callback_del( - image_, EVAS_CALLBACK_MOUSE_WHEEL, + event_layer_, EVAS_CALLBACK_MOUSE_WHEEL, evas_object_callbacks_[EVAS_CALLBACK_MOUSE_WHEEL]); evas_object_event_callback_del( - container_, EVAS_CALLBACK_KEY_DOWN, + event_layer_, EVAS_CALLBACK_KEY_DOWN, evas_object_callbacks_[EVAS_CALLBACK_KEY_DOWN]); - evas_object_event_callback_del(container_, EVAS_CALLBACK_KEY_UP, + evas_object_event_callback_del(event_layer_, EVAS_CALLBACK_KEY_UP, evas_object_callbacks_[EVAS_CALLBACK_KEY_UP]); }