Merge "Fix KeyboardView's verticalCorrection handling"
This commit is contained in:
committed by
Android (Google) Code Review
commit
c8f5e43719
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user