commit | 581761d4aa0133fe7354cc9e4a5dd3d9d7258c5f | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Fri Sep 09 15:39:35 2011 -0700 |
committer | Jeff Brown <jeffbrown@google.com> | Fri Sep 09 16:04:09 2011 -0700 |
tree | b54e8f590d67a5a90d1ec19f66f58a47acee4fa4 | |
parent | bfcb60ab0f696c8ef70830c365550e62fe2808bf [diff] |
Tweak VelocityTracker. Bug: 5265529 Calculate the velocity using the most recent touch sample as the point of reference instead of the oldest. This change more heavily weights recent touch samples and reduces the sample time window used for calculation. This significantly improves the accuracy of fling gesture detection. Change-Id: Ib1940933e786e5f6a731552a99bcd9400741d55f