Loading core/java/android/webkit/WebViewClassic.java +7 −4 Original line number Diff line number Diff line Loading @@ -6002,9 +6002,9 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc data.mNativeLayer = nativeScrollableLayer( contentX, contentY, data.mNativeLayerRect, null); data.mSlop = viewToContentDimension(mNavSlop); mTouchHighlightRegion.setEmpty(); removeTouchHighlight(); if (!mBlockWebkitViewMessages) { mTouchHighlightRequested = System.currentTimeMillis(); mTouchHighlightRequested = SystemClock.uptimeMillis(); mWebViewCore.sendMessageAtFrontOfQueue( EventHub.HIT_TEST, data); } Loading Loading @@ -7777,13 +7777,16 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc if (mFocusedNode.mHasFocus && mFocusedNode.mEditable) { return false; } long delay = System.currentTimeMillis() - mTouchHighlightRequested; long delay = SystemClock.uptimeMillis() - mTouchHighlightRequested; if (delay < ViewConfiguration.getTapTimeout()) { Rect r = mTouchHighlightRegion.getBounds(); mWebView.postInvalidateDelayed(delay, r.left, r.top, r.right, r.bottom); return false; } return true; if (mInputDispatcher == null) { return false; } return mInputDispatcher.shouldShowTapHighlight(); } Loading core/java/android/webkit/WebViewInputDispatcher.java +6 −0 Original line number Diff line number Diff line Loading @@ -349,6 +349,12 @@ final class WebViewInputDispatcher { } } public boolean shouldShowTapHighlight() { synchronized (mLock) { return mPostLongPressScheduled || mPostClickScheduled; } } private void postLongPress() { synchronized (mLock) { if (!mPostLongPressScheduled) { Loading Loading
core/java/android/webkit/WebViewClassic.java +7 −4 Original line number Diff line number Diff line Loading @@ -6002,9 +6002,9 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc data.mNativeLayer = nativeScrollableLayer( contentX, contentY, data.mNativeLayerRect, null); data.mSlop = viewToContentDimension(mNavSlop); mTouchHighlightRegion.setEmpty(); removeTouchHighlight(); if (!mBlockWebkitViewMessages) { mTouchHighlightRequested = System.currentTimeMillis(); mTouchHighlightRequested = SystemClock.uptimeMillis(); mWebViewCore.sendMessageAtFrontOfQueue( EventHub.HIT_TEST, data); } Loading Loading @@ -7777,13 +7777,16 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc if (mFocusedNode.mHasFocus && mFocusedNode.mEditable) { return false; } long delay = System.currentTimeMillis() - mTouchHighlightRequested; long delay = SystemClock.uptimeMillis() - mTouchHighlightRequested; if (delay < ViewConfiguration.getTapTimeout()) { Rect r = mTouchHighlightRegion.getBounds(); mWebView.postInvalidateDelayed(delay, r.left, r.top, r.right, r.bottom); return false; } return true; if (mInputDispatcher == null) { return false; } return mInputDispatcher.shouldShowTapHighlight(); } Loading
core/java/android/webkit/WebViewInputDispatcher.java +6 −0 Original line number Diff line number Diff line Loading @@ -349,6 +349,12 @@ final class WebViewInputDispatcher { } } public boolean shouldShowTapHighlight() { synchronized (mLock) { return mPostLongPressScheduled || mPostClickScheduled; } } private void postLongPress() { synchronized (mLock) { if (!mPostLongPressScheduled) { Loading