commit | 83f111d129fcb8c50b35da789f0d75604b9c0864 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Mon Apr 20 21:03:13 2009 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Mon May 11 18:18:16 2009 -0700 |
tree | 051f86af9c88dd6df4b6198a99e292807f6b961c | |
parent | ecadabf578369def58e343c1adbb5537aa9801e4 [diff] |
Prevent race condition when cancelling long-press for scroll. When dragging between workspaces in rapid succession, the canceling of the original long-press timer wasn't being triggered correctly. (When the timer fires, it might read an invalid Workspace.allowLongPress() value.) This patchset correctly cancels any pending long-press timers once a desktop scroll begins, and we don't need to rely on the allowLongPress() value.