__initialBounds = __pEdit->GetBoundsF();
+ __defaultTouchMoveThreshold = __pEdit->GetTouchPressThreshold();
+
__pCursorVisualElement = new (std::nothrow) _VisualElement;
SysTryCatch(NID_UI_CTRL, __pCursorVisualElement, , r = E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Unable to create instance");
}
__isTouchPressed = true;
+ __isTouchReleaseSkipped = false;
__pScrollEffect->previousY = _CoordinateSystemUtils::ConvertToFloat(touchInfo.GetCurrentPosition().y);
__pScrollEffect->currentY = _CoordinateSystemUtils::ConvertToFloat(touchInfo.GetCurrentPosition().y);
&& (__pressedPoint.y >= __clearIconBounds.y) && (__pressedPoint.y <= __clearIconBounds.y + __clearIconBounds.height)) // Clear Icon Pressed
{
__isClearIconPressed = true;
- __defaultTouchMoveThreshold = __pEdit->GetTouchPressThreshold();
__pEdit->SetTouchPressThreshold(TOUCH_PRESS_THRESHOLD_IN_CLEAR_AREA);
}
}
if (__isClearIconPressed)
{
__isClearIconPressed = false;
+ __pEdit->SetTouchPressThreshold(__defaultTouchMoveThreshold);
}
__isTouchPressed = false;
{
FloatPoint touchPoint = touchInfo.GetCurrentPosition();
__isClearIconPressed = false;
+ __pEdit->SetTouchPressThreshold(__defaultTouchMoveThreshold);
if ((touchPoint.x >= __clearIconBounds.x) && (touchPoint.x <= __clearIconBounds.x + __clearIconBounds.width)
&& (touchPoint.y >= __clearIconBounds.y) && (touchPoint.y <= __clearIconBounds.y + __clearIconBounds.height))
{
__pEdit->SendTextEvent(CORE_TEXT_EVENT_CHANGED);
__isMovingCursorByTouchMove = false;
__pEdit->Invalidate();
- __pEdit->SetTouchPressThreshold(__defaultTouchMoveThreshold);
}
}
}
if (__isClearIconPressed)
{
__isClearIconPressed = false;
+ __pEdit->SetTouchPressThreshold(__defaultTouchMoveThreshold);
+
if ((touchPoint.x >= __clearIconBounds.x) && (touchPoint.x <= __clearIconBounds.x + __clearIconBounds.width)
&& (touchPoint.y >= __clearIconBounds.y) && (touchPoint.y <= __clearIconBounds.y + __clearIconBounds.height))
{
|| (touchPoint.y < __clearIconBounds.y) || (touchPoint.y > __clearIconBounds.y + __clearIconBounds.height))
{
__isClearIconPressed = false;
+ __pEdit->SetTouchPressThreshold(__defaultTouchMoveThreshold);
__pEdit->Invalidate();
}
}
if (__isCopyPasteManagerExist)
{
__pCopyPasteManager->Show();
- __isCopyPastePopupMoving = true;
+ if (!__isClearIconPressed)
+ {
+ __isCopyPastePopupMoving = true;
+ }
}
if (__isTouchMoving == false && IsHorizontalDirection(touchInfo))
{
SysLog(NID_UI_CTRL, "OnLongPressGestureDetected");
+ if (__isClearIconPressed)
+ {
+ return true;
+ }
+
__isTouchPressed = false;
_AccessibilityManager* pAccessibilityManager = _AccessibilityManager::GetInstance();
return false;
}
- if (__isClearIconPressed)
- {
- return true;
- }
-
if (__isCopyPasteManagerExist)
{
return true;
bool
_EditPresenter::OnFocusGained(void)
{
+ __pEdit->SetTouchPressThreshold(__defaultTouchMoveThreshold);
+
if (!__pParentForm)
{
__pParentForm = GetParentForm();
if (!__pEdit->IsDestroyed())
{
InitializeCopyPasteManager();
+ __pEdit->SetTouchPressThreshold(__defaultTouchMoveThreshold);
}
if (__isAutoShrinkEnabled)