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

Skip to content
Commit 120e7c46 authored by Jean Chen's avatar Jean Chen
Browse files

fix(MultiFingerMultiTap): The two finger triple tap is hard work when Magnification is activated

1. ACTION_POINTER_DONW: The two-finger triple tap and two-finger swipe are closely similar gestures when the user doesn't complete the triple tap. To differentiate between these gestures, we implement a delay and utilize the ACTION_UP event to determine whether it's a multi-tap or single-tap gesture.
2. ACTION_MOVE: When the ACTION_MOVE event is triggered before ACTION_PINTER_DONW for second tap, mSecondPointerDownLocation has already been set during the ACTION_POINTER_DOWN of first tap and we stop it transition to the panning state due to a two-finger triple tap (ACTION_UP), so, we need to check the value of mCompletedTapCount for second tap.

NO_IFTTT=add the multi-finger multi-tap feature without syncing to the old state

Bug: 313721606
Test: manual
Test: atest FullScreenMagnificationGestureHandlerTest
Change-Id: I136185e96b621f595d4feb8cc774264161237493
parent bd1371b4
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