[Tizen] Fix to enable multi touch for pinch zoom in WebView 42/315742/1
authordongsug.song <dongsug.song@samsung.com>
Wed, 31 Jul 2024 00:38:10 +0000 (09:38 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Wed, 7 Aug 2024 04:48:34 +0000 (13:48 +0900)
This reverts commit 49a34fad14a97f898cfa2bfe09a296b323f0cdfc.

Change-Id: I352e954b5401bd323c22883ab1722e222addc8d8

dali-extension/web-engine-chromium/tizen-web-engine-chromium.cpp

index 7abb032..6c0be59 100644 (file)
@@ -593,7 +593,10 @@ bool TizenWebEngineChromium::FeedTouchEvent(const TouchEvent& touch)
 {
   Ewk_Touch_Event_Type   type  = EWK_TOUCH_START;
   Evas_Touch_Point_State state = EVAS_TOUCH_POINT_DOWN;
-  switch(touch.GetState(0))
+
+  std::size_t pointCount = touch.GetPointCount() - 1;
+
+  switch(touch.GetState(pointCount))
   {
     case PointState::DOWN:
     {
@@ -627,9 +630,9 @@ bool TizenWebEngineChromium::FeedTouchEvent(const TouchEvent& touch)
 
   Eina_List*      pointList = 0;
   Ewk_Touch_Point point;
-  point.id    = 0;
-  point.x     = touch.GetScreenPosition(0).x;
-  point.y     = touch.GetScreenPosition(0).y;
+  point.id    = pointCount;
+  point.x     = touch.GetScreenPosition(pointCount).x;
+  point.y     = touch.GetScreenPosition(pointCount).y;
   point.state = state;
   pointList   = eina_list_append(pointList, &point);