summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author mattsziklay <mattsziklay@google.com> 2024-01-10 13:53:50 -0800
committer Matt Sziklay <mattsziklay@google.com> 2024-01-17 22:32:24 +0000
commit97cbdecf91a897dadc221b425326a0b637b9e484 (patch)
tree7b07da27ead3e822d13eeebeb9ad31f2cd9ca612 /libs/androidfw/misc.cpp
parente8c4c3b0473637584e1cc55020f8aa3f323972d4 (diff)
Update drag resizing to prioritize close button.
Removes the pilfer pointers call on ACTION_DOWN for drag handles, as this prevented clicking on the close button in the area where the button and the top right corner handle intersected. Instead, we add pilfer calls to ACTION_MOVE and ACTION_UP/CANCEL events to prevent click events triggering during a drag resize. Because DesktopModeWindowDecorViewModel's EventHandler handles MotionEvents before DragResizeInputListener's handler, this CL also adds a check to ensure a drag reposition is not performed while a drag resize handle is being touched. Previously this was avoided by pilfering on ACTION_DOWN, before any ACTION_MOVE could be handled. Lastly, this CL changes the timing of showing resize veil to first ACTION_MOVE instead of ACTION_DOWN to prevent briefly showing the veil while closing a task. Bug: 318633921 Test: Manual, confirm that top corner handles can both handle button clicks and drag resizes while still preventing input to tasks behind it. Test: atest VeiledResizeTaskPositionerTest, FluidResizeTaskPositionerTest Change-Id: Ie3937d2a41de925c233d9474eb7495c5b8b0ac89
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions