Merge "Skip sudden jump detection on distinct multitouch device"

main
Tadashi G. Takaoka 2011-02-03 23:00:19 -08:00 committed by Android (Google) Code Review
commit fdb2225803
1 changed files with 3 additions and 0 deletions

View File

@ -141,6 +141,9 @@ public class LatinKeyboardView extends KeyboardView {
* KeyboardView.
*/
private boolean handleSuddenJump(MotionEvent me) {
// If device has distinct multi touch panel, there is no need to check sudden jump.
if (hasDistinctMultitouch())
return false;
final int action = me.getAction();
final int x = (int) me.getX();
final int y = (int) me.getY();