summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Josh Yang <yzj@google.com> 2024-07-22 17:32:28 -0700
committer Josh Yang <yzj@google.com> 2024-07-25 11:32:53 -0700
commit000a5c3ba1afc12b46a808a1f9e3d27bf56c6ec1 (patch)
treebb84c603cebda5ca77f941ca45471de2bb5fe6c4 /libs/androidfw/misc.cpp
parent9e11b523b03e1245a135a1cbb46e6ad16e3c44e7 (diff)
Fix overscroll detection on watch.
The overscroll detection doesn't work well when user scrolls diagonally at the edge. E.g. when user swipes right when the view top is at top, the swipe was considered overscroll if the finger has a very minor delta with upwards direction. This change fixes this issue by determining the swipe direction based on the larger delta value between x and y axis. Flag: EXEMPT small bug fix Bug: 350679840 Test: atest FullScreenMagnificationGestureHandlerTest Change-Id: I75f9b50157c621ba5a602cecef03c1dbb7ab41ad
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions