Fixed a problem that image is reduced when use drag operation.
authorbunam.jeon <bunam.jeon@samsung.com>
Mon, 8 Jul 2013 11:21:54 +0000 (20:21 +0900)
committerbunam.jeon <bunam.jeon@samsung.com>
Mon, 8 Jul 2013 11:31:45 +0000 (20:31 +0900)
[Title] Fixed a problem that image is reduced when use drag operation.
[Issue#] N_SE-44774
[Problem] image is reduced when use drag operation.
[Cause] Drag hide time is slow. so, drag icon is work.
[Solution] Quickly drag hide and remove logic for duplicate.

Change-Id: I8c4d675d37dde50645eed687a725b1de07e00d82

Source/WebKit2/UIProcess/API/efl/ewk_view.cpp
Source/WebKit2/UIProcess/API/efl/tizen/Drag.cpp

index 24dcf69..171a0c4 100755 (executable)
@@ -449,6 +449,9 @@ static Eina_Bool _ewk_view_smart_gesture_start(Ewk_View_Smart_Data* smartData, c
         // 1. Check to start dragging.
         if (hitTestResultData.isDragSupport) {
             impl->pageClient->setDragPoint(scenePoint);
+            if (impl->pageClient->isDragMode()) {
+                impl->pageClient->setDragMode(false);
+            }
 #if ENABLE(TIZEN_WEBKIT2_FOCUS_RING)
             if (impl->focusRing)
                 impl->focusRing->show(IntRect(), true);
@@ -549,10 +552,6 @@ static Eina_Bool _ewk_view_smart_gesture_end(Ewk_View_Smart_Data* smartData, con
             impl->gestureClient->endDoubleTap(IntPoint(event->position.x, event->position.y));
         break;
     case EWK_GESTURE_LONG_PRESS:
-#if ENABLE(TIZEN_DRAG_SUPPORT)
-        if (impl->pageClient->isDragMode())
-            impl->pageClient->setDragMode(false);
-#endif
         // Prcess endTap for LONG_PRESS gesture if text-selection and context menu did not work
         impl->gestureClient->endTap(IntPoint(event->position.x, event->position.y));
         break;
index 1252316..ba0bbc7 100755 (executable)
@@ -123,7 +123,6 @@ void Drag::handleMouseUp(DragHandle* handle)
     if (dragSession.operation != DragOperationNone) {
         m_viewImpl->page()->performDrag(dragData, m_dragStorageName);
         setDragMode(false);
-        m_Handle->hide();
         m_viewImpl->page()->dragEnded(viewPoint, viewPoint, m_dragData->draggingSourceOperationMask());
     }
     delete(dragData);