Bug 721076 - Set correct prevent panning mode on touchdown. r=kats

This commit is contained in:
Wes Johnston 2012-02-01 10:33:33 -08:00
parent 0f241fee7d
commit cbe4570b49

View File

@ -384,11 +384,13 @@ public class LayerController {
public boolean onTouchEvent(MotionEvent event) {
int action = event.getAction();
PointF point = new PointF(event.getX(), event.getY());
if ((action & MotionEvent.ACTION_MASK) == MotionEvent.ACTION_DOWN) {
mView.clearEventQueue();
initialTouchLocation = point;
allowDefaultActions = !mWaitForTouchListeners;
post(new Runnable() {
public void run() {
mView.clearEventQueue();
preventPanning(mWaitForTouchListeners);
}
});