diff options
author | Grace Kloba <klobag@google.com> | 2010-01-18 15:21:38 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-01-18 15:21:38 -0800 |
commit | d79d1c72991e587294432e80d091e3ae26a0c103 (patch) | |
tree | 9fb78c850e4f6514a83cccb197e819edd5605a74 | |
parent | f080a5adf6d59bade46815ee605a3829e5c3ab89 (diff) | |
parent | d4d1d6eca0ad195c1ab64c0f4dd38ae328b2b042 (diff) | |
download | frameworks_base-d79d1c72991e587294432e80d091e3ae26a0c103.zip frameworks_base-d79d1c72991e587294432e80d091e3ae26a0c103.tar.gz frameworks_base-d79d1c72991e587294432e80d091e3ae26a0c103.tar.bz2 |
Merge "If ZoomButttonsController detects more than one pointer, give up the control. This should enable the View behind it, like WebView, will always get the multi-pointer events even when ZoomButtonsController is up." into eclair
-rw-r--r-- | core/java/android/widget/ZoomButtonsController.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/widget/ZoomButtonsController.java b/core/java/android/widget/ZoomButtonsController.java index e55fbb8..c683e71 100644 --- a/core/java/android/widget/ZoomButtonsController.java +++ b/core/java/android/widget/ZoomButtonsController.java @@ -546,6 +546,11 @@ public class ZoomButtonsController implements View.OnTouchListener { public boolean onTouch(View v, MotionEvent event) { int action = event.getAction(); + if (event.getPointerCount() > 1) { + // ZoomButtonsController doesn't handle mutitouch. Give up control. + return false; + } + if (mReleaseTouchListenerOnUp) { // The controls were dismissed but we need to throw away all events until the up if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL) { |