Correct condition for early detection
The condition should use the entire stroke, not recent samples. This was
not "really" a bug because it would never get triggered.
In practice today, samples().size() would reach max, and then it would
permanently stay there. But semantically, it makes more sense to
consider the entire stroke's duration.
Bug: b/240168494
Test: autoninja -C out/Default events_unittests
Change-Id: I66e5d0bce46909a329eb7d43448950a5f3503266
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3854948
Reviewed-by: Rob Schonberger <robsc@chromium.org>
Commit-Queue: Siarhei Vishniakou <svv@google.com>
Auto-Submit: Siarhei Vishniakou <svv@google.com>
Cr-Commit-Position: refs/heads/main@{#1039338}
1 file changed