summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2021-06-23 18:29:41 +0000
committerGeorge Mount <mount@google.com>2021-06-23 21:25:04 +0000
commit22a9f9c83e937e1ae72442d6906f1339756b143e (patch)
tree42395607f26d1bb998721aa155078069bde8b528 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentccc98b8d6e6498ea4fffc3ca99a7681435c9bed1 (diff)
Linearly complete overscroll stretch when close
Fixes: 190475978 Damped spring animations asymptotically approach their destinations. The final pixels can take many frames to complete, but stopping them means that we get a disruptive jump in those final pixels. This CL detects when the edge effect animation is close to the finish and completes the animation with a linear velocity that matches a common velocity at 8 pixels distant. This means that the animation terminates quicker so that touch events directed at the contents after the animation completes (e.g. taps) can interact with the contents soon. The CL also adjusts the delta for detecting zero in the stretch animation as it was jumping by a pixel or more at the end of an otherwise smooth animation. Test: manual testing for the visual effect Change-Id: Ie249b0265c5c5939b597668d5afe4f76d0430821
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions