From d3616592fe1b315b589766c4b74ce728fc4968f5 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Fri, 16 Jul 2010 17:21:06 -0700 Subject: Fix trackball down and movement bugs. Bug: 2823788 Change-Id: Icb0c392b58f7e735614460b5eb87439cb73ac4f2 --- libs/ui/InputReader.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/ui/InputReader.cpp') diff --git a/libs/ui/InputReader.cpp b/libs/ui/InputReader.cpp index 403afe7601d0..30e391ff61d6 100644 --- a/libs/ui/InputReader.cpp +++ b/libs/ui/InputReader.cpp @@ -270,6 +270,10 @@ void InputReader::handleKey(const RawEvent* rawEvent) { device->trackball.accumulator.fields |= InputDevice::TrackballState::Accumulator::FIELD_BTN_MOUSE; device->trackball.accumulator.btnMouse = down; + + // Process the trackball change now since we may not receive a sync immediately. + onTrackballStateChanged(rawEvent->when, device); + device->trackball.accumulator.clear(); return; } } -- cgit v1.2.3-59-g8ed1b