Bug 788379 - Cancel the tap highlight if a touch event block is prevent-defaulted. r=wesj

This commit is contained in:
Kartikaya Gupta 2012-09-11 13:36:32 -04:00
parent 2d6b93cf59
commit ae8cc5442f

View File

@ -457,6 +457,8 @@ public class PanZoomController
}
private boolean onTouchCancel(MotionEvent event) {
cancelTouch();
if (mState == PanZoomState.WAITING_LISTENERS) {
// we might get a cancel event from the TouchEventHandler while in the
// WAITING_LISTENERS state if the touch listeners prevent-default the
@ -467,7 +469,6 @@ public class PanZoomController
return false;
}
cancelTouch();
// ensure we snap back if we're overscrolled
bounce();
return false;