Fix detecting out of keyboard area

Bug: 8885165
Change-Id: I85c78b23955169972fb0f5395463b6fe47f12c9c
This commit is contained in:
Tadashi G. Takaoka 2013-05-10 12:16:44 +09:00
parent b0aabbfbe0
commit 2ad7023c54

View file

@ -145,7 +145,7 @@ public class GestureStroke {
public void setKeyboardGeometry(final int keyWidth, final int keyboardHeight) {
mKeyWidth = keyWidth;
mMinYCoordinate = -(int)(keyboardHeight * EXTRA_GESTURE_TRAIL_AREA_ABOVE_KEYBOARD_RATIO);
mMaxYCoordinate = keyboardHeight - 1;
mMaxYCoordinate = keyboardHeight;
// TODO: Find an appropriate base metric for these length. Maybe diagonal length of the key?
mDetectFastMoveSpeedThreshold = (int)(keyWidth * mParams.mDetectFastMoveSpeedThreshold);
mGestureDynamicDistanceThresholdFrom =