fixed bug (touch adjustment in the single line style)
authorChulheon <ch.jeong47@samsung.com>
Wed, 17 Apr 2013 01:07:45 +0000 (10:07 +0900)
committerChulheon <ch.jeong47@samsung.com>
Wed, 17 Apr 2013 01:10:15 +0000 (10:10 +0900)
Change-Id: I193476e121c12dacdb7b286df18b97b05b2a4729

src/ui/controls/FUiCtrl_EditCopyPasteManager.cpp

index 76bab6c..5928130 100755 (executable)
@@ -1107,7 +1107,14 @@ _EditCopyPasteHandler::OnTouchMoved(const _Control& source, const _TouchInfo& to
        cursorRect = __pCopyPasteManager->GetCursorBoundsF(false);
        absCursorRect = __pCopyPasteManager->GetCursorBoundsF(true);
        touchPoint.x = cursorRect.x + (point.x - __touchPressedPoint.x);
-       touchPoint.y = cursorRect.y + cursorRect.height + (point.y - __touchPressedPoint.y);
+       if (totalLine == 1)
+       {
+               touchPoint.y = cursorRect.y + cursorRect.height/2;
+       }
+       else
+       {
+               touchPoint.y = cursorRect.y + cursorRect.height + (point.y - __touchPressedPoint.y);
+       }
        cursorPos = __pCopyPasteManager->GetCursorPositionAt(touchPoint);
 
        if (cursorPos != -1)