зеркало из https://github.com/mozilla/gecko-dev.git
Bug 815943 - prevent drag detection while invoking preventDefault() on touch move event. r=smaug.
This commit is contained in:
Родитель
8e2e5f06a2
Коммит
ad934e8b01
|
@ -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<nsIContent> parentContent;
|
||||
int32_t contentOffset;
|
||||
|
|
Загрузка…
Ссылка в новой задаче