Merge "Fix KeyboardView's verticalCorrection handling"

This commit is contained in:
Tadashi G. Takaoka
2010-07-30 16:34:06 -07:00
committed by Android (Google) Code Review
4 changed files with 22 additions and 13 deletions

View File

@@ -1128,7 +1128,9 @@ public class KeyboardView extends View implements View.OnClickListener {
private boolean onModifiedTouchEvent(MotionEvent me, boolean possiblePoly) {
int touchX = (int) me.getX() - mPaddingLeft;
int touchY = (int) me.getY() + mVerticalCorrection - mPaddingTop;
int touchY = (int) me.getY() - mPaddingTop;
if (touchY >= -mVerticalCorrection)
touchY += mVerticalCorrection;
final int action = me.getAction();
final long eventTime = me.getEventTime();
mOldEventTime = eventTime;