summaryrefslogtreecommitdiff
path: root/cmds/dumpstate/testdata/empty-file.txt
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2017-06-12 15:01:41 +0100
committerSiarhei Vishniakou <svv@google.com>2017-08-23 18:40:23 +0000
commit086a02a25f4e24be436411d7cbe86307ae0a6ad7 (patch)
treebb1e4150ec8dc9cd347c65948848332d7b02b782 /cmds/dumpstate/testdata/empty-file.txt
parent3b11ed3f8b912c065e4ddde13c0bf241210c5703 (diff)
downloadnative-086a02a25f4e24be436411d7cbe86307ae0a6ad7.tar.gz
Fix resampling logic for duplicate events.
When events with identical coordinates are reported by the input driver, resampling can lead to false change of direction due to extrapolation. The added logic will compare the current event to the previous event, and will use the previously resampled values for the new event if the raw (as reported by the driver) coordinates of the two events match. This commit makes events with identical coordinates possible, so it must be submitted together with the new impulse-based VelocityTracker strategy commit. The currently used 2nd degree polynomical unweighted least squares strategy cannot handle consecutive events with identical coordinates. Bug: 35412046 Test: Recorded bad scroll event on swordfish, and replayed the event to reproduce this bug. To twitch is no longer observed. Also tested common usecase scenarios on sailfish, no regressions observed. Change-Id: Icb5cf6c76959f3514b8b94c09e38cc5434f31b23 (cherry picked from commit 0aeec07971d86c635412c672bd69d91f589a0cd9) Merged-In: Icb5cf6c76959f3514b8b94c09e38cc5434f31b23
Diffstat (limited to 'cmds/dumpstate/testdata/empty-file.txt')
0 files changed, 0 insertions, 0 deletions