Since commit
78f97b326 ("Support pointer capture in InputReader") the
logic to determine whether mouse input is relative was changed.
However, commit
bf8d48c17 was forward ported from nougat-x86. It doesn't
consider that.
Fixes:
bf8d48c17 ("inputflinger: treat tablet-style inputs as absolute coordinate mouse pointer")
Reported-and-tested-by: MrARM Slack <mrarm.slack@gmail.com>
rotateDelta(mOrientation, &deltaX, &deltaY);
}
mPointerVelocityControl.move(when, &deltaX, &deltaY);
- if (mPointerController != NULL) {
+ if (mSource == AINPUT_SOURCE_MOUSE) {
if (moved) {
mPointerController->move(deltaX, deltaY);
}