diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 771d89780e2d..4fd18d34b0f3 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -3032,6 +3032,14 @@ NS_IMETHODIMP nsFrame::HandleDrag(nsPresContext* aPresContext, frameselection->StopAutoScrollTimer(); +#ifdef MOZ_B2G + // We only check touch move event since mouse move event is not cancelable. + if (aEvent->message == NS_TOUCH_MOVE && + nsEventStatus_eConsumeNoDefault == *aEventStatus) { + return NS_OK; + } +#endif // MOZ_B2G + // Check if we are dragging in a table cell nsCOMPtr parentContent; int32_t contentOffset;