fixed bug
authorChulheon <ch.jeong47@samsung.com>
Wed, 26 Jun 2013 05:19:08 +0000 (14:19 +0900)
committerChulheon <ch.jeong47@samsung.com>
Wed, 26 Jun 2013 05:19:08 +0000 (14:19 +0900)
Change-Id: I6d04710d6816fe1b5ee0b49588c8f13225da7f06

src/ui/controls/FUiCtrl_EditCopyPasteManager.cpp

index dd1544b..f281c80 100644 (file)
@@ -1384,7 +1384,7 @@ _EditCopyPasteHandler::OnTouchMoved(const _Control& source, const _TouchInfo& to
        bool cursorPosFromTouch = false;
        cursorPos = pEditPresenter->GetCursorPositionAt(touchPoint, rowIndex, columnIndex, true);
 
-       if (cursorPos != -1)
+       if (cursorPos != -1 && __handlerCursorPos != cursorPos)
        {
                cursorPosFromTouch = true;
                FloatRectangle cursorBounds(0.0f, 0.0f, 0.0f, 0.0f);
@@ -1629,6 +1629,9 @@ _EditCopyPasteHandler::OnTouchMoved(const _Control& source, const _TouchInfo& to
        pTextObject->SetFirstDisplayLineIndexFromTextIndex(cursorPos);
 
        __handlerCursorPos = cursorPos;
+       __pCopyPasteManager->SetCursorPosition(__handlerCursorPos);
+       pEditPresenter->ScrollPanelToCursorPosition(true);
+
        if (!__singleHandler)
        {
                __pCopyPasteManager->RefreshBlock(__leftHandler);