don't use modulo
diff --git a/core/java/android/view/MotionEvent.java b/core/java/android/view/MotionEvent.java
index 0d55679..86261c4 100644
--- a/core/java/android/view/MotionEvent.java
+++ b/core/java/android/view/MotionEvent.java
@@ -228,8 +228,10 @@
             if (mHistory != null) {
                 float[] history = mHistory;
                 int length = history.length;
-                for (int i = 0; i < length; i++) {
+                for (int i = 0; i < length; i += 4) {
                     history[i] *= scale;
+                    history[i + 2] *= scale;
+                    history[i + 3] *= scale;
                 }
             }
         }