From 5cd88cfd239bc61a4327e2a13747b4590890d838 Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Wed, 9 Jun 2010 17:10:04 -0700 Subject: Fix bug 2757693 - Multi-touch coordinates can jump when a finger goes down. Change-Id: I26bd54cec739ca8d91d2c2b18b90134f20dbd907 --- services/java/com/android/server/InputDevice.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/java/com/android/server/InputDevice.java b/services/java/com/android/server/InputDevice.java index 07a74da8b4f0..414b69fabdc8 100644 --- a/services/java/com/android/server/InputDevice.java +++ b/services/java/com/android/server/InputDevice.java @@ -671,6 +671,8 @@ public class InputDevice { System.arraycopy(lastData, i*MotionEvent.NUM_SAMPLE_DATA, lastData, (i+1)*MotionEvent.NUM_SAMPLE_DATA, (lastNumPointers-i)*MotionEvent.NUM_SAMPLE_DATA); + System.arraycopy(next2Last, i, next2Last, + i+1, lastNumPointers-i); break; } i++; -- cgit v1.2.3-59-g8ed1b