Bug 772422 - Ignore touch events when selecting text. r=smaug

This commit is contained in:
Wes Johnston 2012-07-12 14:14:29 -07:00
parent 75923210ac
commit 43a8729734

View File

@ -2475,6 +2475,11 @@ nsFrame::HandlePress(nsPresContext* aPresContext,
return NS_OK;
}
NS_ENSURE_ARG_POINTER(aEvent);
if (aEvent->eventStructType == NS_TOUCH_EVENT) {
return NS_OK;
}
//We often get out of sync state issues with mousedown events that
//get interrupted by alerts/dialogs.
//Check with the ESM to see if we should process this one