From: Wonsik, Jung Date: Mon, 16 Oct 2017 08:31:24 +0000 (+0900) Subject: [Ecore] Modify the touch cancel event callback X-Git-Tag: accepted/tizen/4.0/unified/20171017.212913~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28ef86d0b70d58c8cde27f4e03e494c195208f72;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git [Ecore] Modify the touch cancel event callback In Ecore touch cancel evnet callback function, the function does not have correct x,y coordinates. Just have (0,0). Because ecore_wl touch event does not have the information. For that, I trying to fix ecore_wl touch event. The related patch is "https://review.tizen.org/gerrit/#/c/152904/" After that, touch event callback function will receive correct coordinates data. This patch is for that. Change-Id: I310beb344d29ee2a38f15dd0184a77ad372252be --- diff --git a/adaptors/ecore/wayland/event-handler-ecore-wl.cpp b/adaptors/ecore/wayland/event-handler-ecore-wl.cpp index 5a950b8..4647b5c 100644 --- a/adaptors/ecore/wayland/event-handler-ecore-wl.cpp +++ b/adaptors/ecore/wayland/event-handler-ecore-wl.cpp @@ -601,9 +601,8 @@ struct EventHandler::Impl if( touchEvent->window == (unsigned int)ecore_wl_window_id_get( handler->mImpl->mWindow ) ) { Integration::Point point; - point.SetDeviceId( touchEvent->multi.device ); point.SetState( PointState::INTERRUPTED ); - point.SetScreenPosition( Vector2( 0.0f, 0.0f ) ); + point.SetScreenPosition( Vector2( touchEvent->x, touchEvent->y ) ); handler->SendEvent( point, touchEvent->timestamp ); DALI_LOG_INFO( gImfLogging, Debug::General, "EVENT EcoreEventMouseButtonCancel\n" );