Merge "Don't show the touch highlight for double taps" into jb-dev
This commit is contained in:
@@ -553,12 +553,17 @@ final class WebViewInputDispatcher {
|
||||
mIsTapCandidate = true;
|
||||
mInitialDownX = event.getX();
|
||||
mInitialDownY = event.getY();
|
||||
scheduleShowTapHighlightLocked();
|
||||
enqueueHitTestLocked(event);
|
||||
if (mIsDoubleTapCandidate) {
|
||||
hideTapCandidateLocked();
|
||||
} else {
|
||||
scheduleShowTapHighlightLocked();
|
||||
}
|
||||
} else if (action == MotionEvent.ACTION_UP) {
|
||||
unscheduleLongPressLocked();
|
||||
if (isClickCandidateLocked(event)) {
|
||||
if (mIsDoubleTapCandidate) {
|
||||
hideTapCandidateLocked();
|
||||
enqueueDoubleTapLocked(event);
|
||||
} else {
|
||||
scheduleClickLocked();
|
||||
|
||||
Reference in New Issue
Block a user