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

Skip to content
Commit 5b20222b authored by Omar Abdelmonem's avatar Omar Abdelmonem
Browse files

Implement draggability feature for TouchpadDebugView

Added a draggability feature to TouchpadDebugView, allowing users to
reposition the view by touch. Constrained the view's movement to stay
within the screen boundaries, preventing it from being dragged
off-screen. Handled screen rotation events by adjusting the view's
position to remain within the new screen dimensions after rotation.

Bug: 359897456
Bug: 360137357

Test: atest TouchpadDebugViewTest
Test: Added unit tests to cover scenarios such as dragging the view,
ensuring the view stays within screen bounds, verifying no movement
for minimal touch input, and confirming the view returns to its
original position when the action is canceled. Manual testing was
also performed to validate these behaviors.
flag: com.android.hardware.input.touchpad_visualizer

Change-Id: I636a01e0741e32154ccee575e178f2aa38e44a0a
parent eeb12637
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment