Bug 1123179 - Bypass touchcaret visibility checking inside scrollable frame when touchcaret drag state is active, r=roc

--HG--
extra : rebase_source : 5370db85347a4ef93d6403e62cf385dc16a23b97
This commit is contained in:
Peter Chang 2015-01-28 01:32:00 +01:00
parent d6df65e7cb
commit 0315667a8a

View File

@ -458,7 +458,8 @@ TouchCaret::IsDisplayable()
return false;
}
if (!nsLayoutUtils::IsRectVisibleInScrollFrames(focusFrame, focusRect)) {
if (mState != TOUCHCARET_TOUCHDRAG_ACTIVE &&
!nsLayoutUtils::IsRectVisibleInScrollFrames(focusFrame, focusRect)) {
TOUCHCARET_LOG("Caret does not show in the scrollable frame!");
return false;
}