Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 97cbdecf authored by mattsziklay's avatar mattsziklay Committed by Matt Sziklay
Browse files

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
parent e8c4c3b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment