diff options
author | Mady Mellor <madym@google.com> | 2017-06-07 14:53:58 -0700 |
---|---|---|
committer | Mady Mellor <madym@google.com> | 2017-06-28 20:12:32 +0000 |
commit | 15b29c7bba95b6d8b6288af3f9dfd45efb85be5e (patch) | |
tree | 92c62dd0502ff8b06e3e6b8f2d2a56d633d183ae /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 8b5b0c2bfa01a50dc32b07673f5d9fcec6536ecc (diff) |
Adjustments to PIP position while flinging
Rather than using a scroller, find the actual edge intercept
based on the trajectory of the fling.
This is done by finding the two points it could intersect with
and checking which point is 'closer' (i.e. would be hit first
by the PIP).
Bias towards using the intersection with the top / bottom edge
if the PIP is being flung along the side it's currently on.
Also increases the maximum time for the fling.
Bug: 35358634
Test: manual - fling PIP around screen while in landscape
and portrait
Change-Id: I26e943a5ddbc726ab86bc11e4271d4db034f3d47
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions