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

Commit c597d61a authored by Michael Wright's avatar Michael Wright
Browse files

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

Bug: 112876936
Test: enable notchless simulation, try seascape apps, try swiping down
Change-Id: I8a155e16c19c474e605cb5a8d938e04461646027
parent 22f1e9cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6547,7 +6547,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