Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa5af8d0 authored by John Reck's avatar John Reck
Browse files

Don't show the touch highlight for double taps

 Bug: 6490959

Change-Id: I5a6cfa3d36f1df28d9c3b03e120f59581ee22c01
parent 3d6f7ead
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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();