am fe72c533: am 461cef5d: Merge "As we don\'t support over scroll any more, we need to pin the (x,y) if we handle the drag after the plugin choose not to handle the event." into froyo

Merge commit 'fe72c533fe210e147111e0a862360032365dd987' into kraken

* commit 'fe72c533fe210e147111e0a862360032365dd987':
  As we don't support over scroll any more, we need
This commit is contained in:
Grace Kloba
2010-04-01 08:20:48 -07:00
committed by Android Git Automerger

View File

@@ -6413,10 +6413,15 @@ public class WebView extends AbsoluteLayout
mLastDeferTouchY = y;
startDrag();
}
doDrag((int) (mLastDeferTouchX - x),
(int) (mLastDeferTouchY - y));
mLastDeferTouchX = x;
mLastDeferTouchY = y;
int deltaX = pinLocX((int) (mScrollX
+ mLastDeferTouchX - x))
- mScrollX;
int deltaY = pinLocY((int) (mScrollY
+ mLastDeferTouchY - y))
- mScrollY;
doDrag(deltaX, deltaY);
if (deltaX != 0) mLastDeferTouchX = x;
if (deltaY != 0) mLastDeferTouchY = y;
break;
}
case MotionEvent.ACTION_UP: