[Title] Added routine to ignore text selection when longtap on handle from OSP.
[Issue#] N/A
[Problem] When longtap on handle from OSP, text selection is cleared.
[Cause] When longtap on handle, textSelectionDown function is called from OSP.
And then, function to clear text selection is called in textSelectiondown function.
[Solution] Added routine to ignore text selection when longtap on handle from OSP.
Change-Id: Idea04ec51ba2f1cc3eb9929c856453f17f4dca35
// 'return true' means text selection is possible.
bool TextSelection::textSelectionDown(const IntPoint& point, bool isStartedTextSelectionFromOutside)
{
// 'return true' means text selection is possible.
bool TextSelection::textSelectionDown(const IntPoint& point, bool isStartedTextSelectionFromOutside)
{
+ // text selection should be ignored when longtap on handle from osp
+ if (!isEnabled() && isTextSelectionHandleDowned())
+ return false;
+
setIsTextSelectionMode(false);
IntPoint contentsPoint = m_viewImpl->transformFromScene().mapPoint(point);
setIsTextSelectionMode(false);
IntPoint contentsPoint = m_viewImpl->transformFromScene().mapPoint(point);
void TextSelection::textSelectionMove(const IntPoint& point, bool isStartedTextSelectionFromOutside)
{
void TextSelection::textSelectionMove(const IntPoint& point, bool isStartedTextSelectionFromOutside)
{
+ // text selection should be ignored when longtap on handle from osp
+ if (!isEnabled() && isTextSelectionHandleDowned())
+ return;
+
if (!isTextSelectionMode()) {
stopMoveAnimator();
return;
if (!isTextSelectionMode()) {
stopMoveAnimator();
return;
void TextSelection::textSelectionUp(const IntPoint& point, bool isStartedTextSelectionFromOutside)
{
void TextSelection::textSelectionUp(const IntPoint& point, bool isStartedTextSelectionFromOutside)
{
+ // text selection should be ignored when longtap on handle from osp
+ if (!isEnabled() && isTextSelectionHandleDowned())
+ return;
+
stopMoveAnimator();
if (!isTextSelectionMode() || !isTextSelectionDowned())
stopMoveAnimator();
if (!isTextSelectionMode() || !isTextSelectionDowned())