Don't long press if preventDefault is called

Bug: 6554060

Change-Id: Iad263c78a0e1504dd10e9ef5b92505bca6991cbc
This commit is contained in:
John Reck
2012-05-29 16:02:23 -07:00
parent 45973d6d19
commit 2dc3ffd31a

View File

@@ -661,6 +661,7 @@ final class WebViewInputDispatcher {
// Web kit has decided to consume the event!
if (d.mEventType == EVENT_TYPE_TOUCH) {
enqueueUiCancelTouchEventIfNeededLocked();
unscheduleLongPressLocked();
}
} else {
// Web kit is being friendly. Pass the event to the UI.