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

Commit 743b38c5 authored by Michael Wright's avatar Michael Wright Committed by android-build-merger
Browse files

Fix a typo when checking a touch is within the physical frame. am: c597d61a

am: 7e83a2b0

Change-Id: I26518c5ac2ec873fb505b9d937f523355d3d6b7c
parents 08170a32 7e83a2b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6549,7 +6549,7 @@ void TouchInputMapper::cancelTouch(nsecs_t when) {

bool TouchInputMapper::isPointInsideSurface(int32_t x, int32_t y) {
    const float scaledX = x * mXScale;
    const float scaledY = x * mYScale;
    const float scaledY = y * mYScale;
    return x >= mRawPointerAxes.x.minValue && x <= mRawPointerAxes.x.maxValue
            && scaledX >= mPhysicalLeft && scaledX <= mPhysicalLeft + mPhysicalWidth
            && y >= mRawPointerAxes.y.minValue && y <= mRawPointerAxes.y.maxValue