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

Commit fea6c8a7 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou Committed by android-build-team Robot
Browse files

Revert to lsq2 VelocityTracker strategy

The impulse implementation causes high velocity
at liftoff on some hardware. Reverting back to lsq2
for now.

Bug: 35412046
Fixes: 69069303
Test: use Google Maps with 2 fingers with both strategies
Change-Id: I7138fa12468303aa3885f4731bbdacbf5c7ce3a8
(cherry picked from commit 899c2aa1)
parent dd01dc32
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ static std::string matrixToString(const float* a, uint32_t m, uint32_t n, bool r
// this is the strategy that applications will actually use.  Be very careful
// when adjusting the default strategy because it can dramatically affect
// (often in a bad way) the user experience.
const char* VelocityTracker::DEFAULT_STRATEGY = "impulse";
const char* VelocityTracker::DEFAULT_STRATEGY = "lsq2";

VelocityTracker::VelocityTracker(const char* strategy) :
        mLastEventTime(0), mCurrentPointerIdBits(0), mActivePointerId(-1) {