Bug 1302736 - Fire click events with a clickCount of 2 when the user does a double-tap gesture with double taps not allowed. r=botond

MozReview-Commit-ID: 5qxHMoHXDXh
This commit is contained in:
Kartikaya Gupta
2016-09-29 10:05:25 -04:00
parent 9aaae459de
commit 1a62c7772f
14 changed files with 87 additions and 35 deletions

View File

@@ -93,7 +93,8 @@ AndroidContentController::HandleTap(TapType aType, const LayoutDevicePoint& aPoi
// HandleTap). We want to post the SingleTap message once; it can be
// done from either thread but we need access to the callback transform
// so we do it from the main thread.
if (NS_IsMainThread() && aType == TapType::eSingleTap) {
if (NS_IsMainThread() &&
(aType == TapType::eSingleTap || aType == TapType::eSecondTap)) {
DispatchSingleTapToObservers(aPoint, aGuid);
}