Skip to content
Snippets Groups Projects
Commit b305e677 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Second finger can start gesture input

Bug: 7108075
Change-Id: I17c419086a86c0bdac7a3858f8c66f6893678e67
parent 1e974dea
No related branches found
No related tags found
No related merge requests found
...@@ -685,18 +685,13 @@ public class PointerTracker implements PointerTrackerQueue.Element { ...@@ -685,18 +685,13 @@ public class PointerTracker implements PointerTrackerQueue.Element {
if (!sShouldHandleGesture) { if (!sShouldHandleGesture) {
return; return;
} }
final int activePointerTrackerCount = getActivePointerTrackerCount(); // A gesture should start only from the letter key.
if (activePointerTrackerCount == 1) { mIsDetectingGesture = (mKeyboard != null) && mKeyboard.mId.isAlphabetKeyboard()
mIsDetectingGesture = false; && !mIsShowingMoreKeysPanel && key != null && Keyboard.isLetterCode(key.mCode);
// A gesture should start only from the letter key. if (mIsDetectingGesture) {
final boolean isAlphabetKeyboard = (mKeyboard != null) if (getActivePointerTrackerCount() == 1) {
&& mKeyboard.mId.isAlphabetKeyboard();
if (isAlphabetKeyboard && !mIsShowingMoreKeysPanel && key != null
&& Keyboard.isLetterCode(key.mCode)) {
sGestureFirstDownTime = eventTime; sGestureFirstDownTime = eventTime;
onGestureDownEvent(x, y, eventTime);
} }
} else if (sInGesture && activePointerTrackerCount > 1) {
onGestureDownEvent(x, y, eventTime); onGestureDownEvent(x, y, eventTime);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment