summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorAndreas Sandblad <andreas.sandblad@sonymobile.com>2012-03-21 14:39:57 +0100
committerHenrik Baard <henrik.baard@sonymobile.com>2012-04-23 09:53:30 +0200
commit8239940d0efb7e536d932473c535c1d9bb0ab658 (patch)
tree6c9d5d4ed0dc3e5381db90691c479b28fa24b05a /services
parentfee88fdb64cd6c0a51b11426e28a1484390d473b (diff)
downloadframeworks_base-8239940d0efb7e536d932473c535c1d9bb0ab658.zip
frameworks_base-8239940d0efb7e536d932473c535c1d9bb0ab658.tar.gz
frameworks_base-8239940d0efb7e536d932473c535c1d9bb0ab658.tar.bz2
Distance max set incorrectly
The distance max used in the MotionRange is calculated incorrectly. Looks like a copy-and-paste error. Change-Id: I2b6daab088df0fb69e05682b67ca33524ff35987
Diffstat (limited to 'services')
-rw-r--r--services/input/InputReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/input/InputReader.cpp b/services/input/InputReader.cpp
index 8324d95..9a6372e 100644
--- a/services/input/InputReader.cpp
+++ b/services/input/InputReader.cpp
@@ -2874,7 +2874,7 @@ void TouchInputMapper::configureSurface(nsecs_t when, bool* outResetNeeded) {
mOrientedRanges.distance.min =
mRawPointerAxes.distance.minValue * mDistanceScale;
mOrientedRanges.distance.max =
- mRawPointerAxes.distance.minValue * mDistanceScale;
+ mRawPointerAxes.distance.maxValue * mDistanceScale;
mOrientedRanges.distance.flat = 0;
mOrientedRanges.distance.fuzz =
mRawPointerAxes.distance.fuzz * mDistanceScale;