OSDN Git Service

DO NOT MERGE Remove dead code
authorJohn Reck <jreck@google.com>
Tue, 28 Aug 2012 23:22:11 +0000 (16:22 -0700)
committerJohn Reck <jreck@google.com>
Tue, 28 Aug 2012 23:29:51 +0000 (16:29 -0700)
 Cherry pick

Change-Id: I19603a6e234b0b2592ef90fd426b2973cff8e4fd

core/java/android/webkit/WebViewClassic.java

index 84a6129..d8541fa 100644 (file)
@@ -1364,7 +1364,7 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
         if (action == MotionEvent.ACTION_POINTER_DOWN) {
             cancelTouch();
             action = MotionEvent.ACTION_DOWN;
-        } else if (action == MotionEvent.ACTION_POINTER_UP && ev.getPointerCount() >= 2) {
+        } else if (action == MotionEvent.ACTION_POINTER_UP) {
             // set mLastTouchX/Y to the remaining points for multi-touch.
             mLastTouchX = Math.round(x);
             mLastTouchY = Math.round(y);