[Title] Fixed tap is working when tap on left/right text selection handle above any linkable content.
[Issue#] N_SE-34980
[Problem] When tap on left/right text selection handle above any linkable content,
tap is working.
[Cause] If isTextSelectionHandleDowned() return value is true, _ewk_view_smart_gesture_end() is return.
When _ewk_view_smart_gesture_end() is called, isTextSelectionHandleDowned() return value is false.
So, tap is working.
[Solution] Changed routine to set isMouseDowned variable to false.
Change-Id: I5adf8518f6ce99bba3462806f785b95e98eb1370
impl->pageClient->textSelectonHandleMove(handlePoint);
else
impl->pageClient->textSelectonHandleUp();
+
+ if (impl->pageClient->isTextSelectionHandleDowned())
+ return true;
}
#endif
void TextSelection::textSelectionHandleDown(const IntPoint& position)
{
TextSelectionHandle* selectedHandle = getSelectedHandle(position);
- if (selectedHandle) {
+ if (selectedHandle)
selectedHandle->mouseDown(position);
- if (selectedHandle->isMouseDowned())
- return;
+ else {
+ m_leftHandle->setIsMouseDowned(false);
+ m_rightHandle->setIsMouseDowned(false);
}
}
edje_object_signal_emit(m_icon, "mouse,up,1", "handle");
#endif
- setIsMouseDowned(false);
m_textSelection->handleMouseUp(this, m_mousePosition);
}
const WebCore::IntPoint position() const { return m_position; }
void setBasePositionForMove(const WebCore::IntPoint& position) { m_basePositionForMove = position; }
bool isMouseDowned() { return m_isMouseDowned; }
+ bool setIsMouseDowned(bool isMouseDowned) { return m_isMouseDowned = isMouseDowned; }
#if ENABLE(TIZEN_WEBKIT2_FOR_MOVING_TEXT_SELECTION_HANDLE_FROM_OSP)
const WebCore::IntRect getHandleRect();
#endif
void setFirstDownMousePosition(const WebCore::IntPoint& position) { m_firstDownMousePosition = position; }
void setMousePosition(const WebCore::IntPoint& position) { m_mousePosition = position; }
- bool setIsMouseDowned(bool isMouseDowned) { return m_isMouseDowned = isMouseDowned; }
private:
Evas_Object* m_icon;