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

Skip to content
Commit 8a22cd58 authored by Michal Brzezinski's avatar Michal Brzezinski
Browse files

Refactoring gesture recognition logic

1/n of introducing gesture live progress tracking

Main motivation for refactoring is making gesture recognition more composition-friendly and extendable, currently ThreeFingerDistanceBasedGestureMonitor is counter-example of that. Goal is to easily filter by number of gestures and react on distance changes and - in the future - to velocity at the end. And to be able to have any combination of that.
Also I think the new code is easier to understand because we avoid inheritance.

Incoming further changes:
- Rename *GestureMonitor to *GestureRecognizer
- Refactor Recent apps gesture logic to follow similar design of compositing features

Bug: 369817369
Test: All tests are passing
Flag: com.android.systemui.shared.new_touchpad_gestures_tutorial
Change-Id: I690b8a95d93a4a18f41ade98e4b214d14153cd6a
parent 88dcc78c
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