* commit 'd73fbc01843dd66336bd0b0db88f75e2d1fe43fc': Second finger can start gesture input
This commit is contained in:
commit
5af8b3fc42
1 changed files with 5 additions and 10 deletions
|
@ -685,18 +685,13 @@ public class PointerTracker implements PointerTrackerQueue.Element {
|
|||
if (!sShouldHandleGesture) {
|
||||
return;
|
||||
}
|
||||
final int activePointerTrackerCount = getActivePointerTrackerCount();
|
||||
if (activePointerTrackerCount == 1) {
|
||||
mIsDetectingGesture = false;
|
||||
// A gesture should start only from the letter key.
|
||||
final boolean isAlphabetKeyboard = (mKeyboard != null)
|
||||
&& mKeyboard.mId.isAlphabetKeyboard();
|
||||
if (isAlphabetKeyboard && !mIsShowingMoreKeysPanel && key != null
|
||||
&& Keyboard.isLetterCode(key.mCode)) {
|
||||
// A gesture should start only from the letter key.
|
||||
mIsDetectingGesture = (mKeyboard != null) && mKeyboard.mId.isAlphabetKeyboard()
|
||||
&& !mIsShowingMoreKeysPanel && key != null && Keyboard.isLetterCode(key.mCode);
|
||||
if (mIsDetectingGesture) {
|
||||
if (getActivePointerTrackerCount() == 1) {
|
||||
sGestureFirstDownTime = eventTime;
|
||||
onGestureDownEvent(x, y, eventTime);
|
||||
}
|
||||
} else if (sInGesture && activePointerTrackerCount > 1) {
|
||||
onGestureDownEvent(x, y, eventTime);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue