Unable to Drag the content with Selection Handler.
authorManish R Gurnaney <m.gurnaney@samsung.com>
Wed, 21 Aug 2013 19:15:05 +0000 (00:45 +0530)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 26 Aug 2013 09:58:59 +0000 (09:58 +0000)
[Title] Unable to Drag the content with Selection Handler.
[Issue#] P130812-05130
[Problem] Drag is not happening when content is Editable.
[Cause] Current Drag is blocked for the elements with
        ContentEditable equal to true.
[Solution] Do the calculation for both the elements whether
           contents are editable or not.

Change-Id: Ic102935d99b177c7ded86eafcd4bea7c15f33b23

Source/WebKit2/UIProcess/API/efl/tizen/TextSelection.cpp

index ee5330b..1d13023 100755 (executable)
@@ -362,10 +362,7 @@ void TextSelection::hideContextMenu()
 
 void TextSelection::scrollContentWithSelectionIfRequired(const IntPoint& evasPoint)
 {
-    EditorState editorState = m_viewImpl->page()->editorState();
-    if (editorState.isContentEditable)
-        return;
-
+    // Content should get scroll irrespective whether content is editable or not.
     setSelectionScrollingStatus(true);
     IntRect unscaledVisibleContentRect = m_viewImpl->pageClient->visibleContentRect();
     const int scrollClipValue = 50;