OSDN Git Service

Fix tap gesture on touch pads.
authorJeff Brown <jeffbrown@google.com>
Fri, 19 Aug 2011 23:04:30 +0000 (16:04 -0700)
committerJeff Brown <jeffbrown@google.com>
Fri, 19 Aug 2011 23:04:30 +0000 (16:04 -0700)
Change-Id: I92b23e5971d4b98b173aacd64fe03ce9f0755c88

services/input/InputReader.cpp

index 88378ef..40c85fc 100644 (file)
@@ -3394,8 +3394,6 @@ void TouchInputMapper::sync(nsecs_t when) {
                 pointerUsage = POINTER_USAGE_MOUSE;
             } else if (!mCurrentFingerIdBits.isEmpty() || isPointerDown(mCurrentButtonState)) {
                 pointerUsage = POINTER_USAGE_GESTURES;
-            } else {
-                pointerUsage = POINTER_USAGE_NONE;
             }
 
             dispatchPointerUsage(when, policyFlags, pointerUsage);