diff options
Diffstat (limited to 'services/inputflinger/InputReader.cpp')
-rw-r--r-- | services/inputflinger/InputReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/inputflinger/InputReader.cpp b/services/inputflinger/InputReader.cpp index 4c4786fea8..0b7e850452 100644 --- a/services/inputflinger/InputReader.cpp +++ b/services/inputflinger/InputReader.cpp @@ -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 |