OSDN Git Service

Drop simultaneous pointer events when tracking velocity.
authorDaniel Sandler <dsandler@android.com>
Wed, 14 Aug 2013 02:24:19 +0000 (19:24 -0700)
committerDaniel Sandler <dsandler@android.com>
Wed, 14 Aug 2013 02:24:19 +0000 (19:24 -0700)
commit69f756fe9b375df404b040c1f1e1d30265365c18
tree8ce048f03c5636f0de4306ad8e6f7d9d8cb9822a
parent9955699d30eaab964549b8173fe9a52dca782877
Drop simultaneous pointer events when tracking velocity.

They're not really simultaneous, but within 1ms of one
another, which is too close for getEventTime() to
distinguish; these events were causing the velocity
computation to become (understandably) confused and
resulting in failed panel flings.

Bug: 10246454
Change-Id: I3829192cdf9ad2a222ec8deca031d772d58de0da
packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java