[Ecore] Modify the touch cancel event callback 29/155829/1
authorWonsik, Jung <sidein@samsung.com>
Mon, 16 Oct 2017 08:31:24 +0000 (17:31 +0900)
committerWonsik, Jung <sidein@samsung.com>
Mon, 16 Oct 2017 08:33:24 +0000 (17:33 +0900)
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

adaptors/ecore/wayland/event-handler-ecore-wl.cpp

index 5a950b8..4647b5c 100644 (file)
@@ -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" );