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

Skip to content
Commit 205b1478 authored by Tyler Freeman's avatar Tyler Freeman
Browse files

feat(magnification): move mag button when window reaches the screen edge

Wait to move it until drag is done, if they are dragging by the handle.
But if it is moving via two-finger drag or triple-tap, update the drag
handle immediately in real-time.

Add tests to verify applyTapExcludeRegion() respects the drag handle
position. This required fixing a bug in earlier code where it was adding
extra padding around the drag handle. Now we only exclude the tap area
of the handle, no padding.

Bug: b/205904754

Test: unit and manual:
1. Drag the magnification window to the right edge of the screen. The button should swap to the left.
2. Tap the button. It should bounce the frame.
3. Drag back to the center. The button should return to the right.

Change-Id: I04af438ad62359ac31ba12aee0a1739e25068937
parent b97bd44d
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