diff options
| author | Jeff Brown <jeffbrown@google.com> | 2010-10-11 17:42:30 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2010-10-11 17:42:30 -0700 |
| commit | dd8b0c90400a1c59d4d71d768c02eed961596bc8 (patch) | |
| tree | 824f5086cdab46a9484c41dc87e921e2ff4212a6 /core/java/android/view/MotionEvent.java | |
| parent | 5d3f6073bfc62811f552a16be7d58483104a29a3 (diff) | |
| parent | 41aabeb51305d19747687f246080f44fc2a74435 (diff) | |
am 41aabeb5: am 1e6a3a53: Merge "Added more robust tracking and cancelation of events." into gingerbread
Merge commit '41aabeb51305d19747687f246080f44fc2a74435'
* commit '41aabeb51305d19747687f246080f44fc2a74435':
Added more robust tracking and cancelation of events.
Diffstat (limited to 'core/java/android/view/MotionEvent.java')
| -rw-r--r-- | core/java/android/view/MotionEvent.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/core/java/android/view/MotionEvent.java b/core/java/android/view/MotionEvent.java index dfbe65c8e307..941147482c4f 100644 --- a/core/java/android/view/MotionEvent.java +++ b/core/java/android/view/MotionEvent.java @@ -82,10 +82,12 @@ import android.os.SystemClock; * } * } * </code></pre></p><p> - * In general, the framework makes no guarantees that the motion events delivered - * to a view constitute a complete gesture. In particular, there is no - * guarantee that a view will always receive a motion event with {@link #ACTION_UP} - * for each {@link #ACTION_DOWN} that was delivered. + * In general, the framework cannot guarantee that the motion events it delivers + * to a view always constitute a complete motion sequences since some events may be dropped + * or modified by containing views before they are delivered. The view implementation + * should be prepared to handle {@link #ACTION_CANCEL} and should tolerate anomalous + * situations such as receiving a new {@link #ACTION_DOWN} without first having + * received an {@link #ACTION_UP} for the prior gesture. * </p><p> * Refer to {@link InputDevice} for more information about how different kinds of * input devices and sources represent pointer coordinates. |
