backout 8f33ef762433 (Bug 985967) for regressions. r=backout
authorWes Johnston <wjohnston@mozilla.com>
Mon, 21 Apr 2014 08:49:33 -0700
changeset 179822 1c075c91c7bf3dbf523dff4b1d237476d2d55743
parent 179821 08928202c32b405d1db5fc64752f5135567851cb
child 179823 788297be17eba9be755b9b5c343e9d94fd2cb737
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersbackout
bugs985967
milestone31.0a1
backs out8f33ef76243333fc077f23ab9c2238feb739ba8a
backout 8f33ef762433 (Bug 985967) for regressions. r=backout
mobile/android/base/gfx/JavaPanZoomController.java
--- a/mobile/android/base/gfx/JavaPanZoomController.java
+++ b/mobile/android/base/gfx/JavaPanZoomController.java
@@ -1348,28 +1348,23 @@ class JavaPanZoomController
     }
 
     @Override
     public void onLongPress(MotionEvent motionEvent) {
         sendPointToGecko("Gesture:LongPress", motionEvent);
     }
 
     @Override
-    public boolean onSingleTapUp(final MotionEvent motionEvent) {
+    public boolean onSingleTapUp(MotionEvent motionEvent) {
         // When double-tapping is allowed, we have to wait to see if this is
         // going to be a double-tap.
         // However, if mMediumPress is true then we know there will be no
         // double-tap so we treat this as a click.
         if (mMediumPress || !mTarget.getZoomConstraints().getAllowDoubleTapZoom()) {
-            mTarget.post(new Runnable() {
-                @Override
-                public void run() {
-                    sendPointToGecko("Gesture:SingleTap", motionEvent);
-                }
-            });
+            sendPointToGecko("Gesture:SingleTap", motionEvent);
         }
         // return false because we still want to get the ACTION_UP event that triggers this
         return false;
     }
 
     @Override
     public boolean onSingleTapConfirmed(MotionEvent motionEvent) {
         // When zooming is disabled, we handle this in onSingleTapUp.