This commit is contained in:
Wes Johnston 2014-03-07 08:32:22 -08:00
Родитель d270b9fd52
Коммит 90b3798210
1 изменённых файлов: 8 добавлений и 6 удалений

Просмотреть файл

@ -220,12 +220,14 @@ final class TouchEventHandler implements Tabs.OnTabsChangedListener {
* Dispatch the event to the gesture detectors and the pan/zoom controller.
*/
private void dispatchEvent(MotionEvent event, boolean allowDefaultAction) {
if (mGestureDetector.onTouchEvent(event)) {
return;
}
mScaleGestureDetector.onTouchEvent(event);
if (mScaleGestureDetector.isInProgress()) {
return;
if (allowDefaultAction) {
if (mGestureDetector.onTouchEvent(event)) {
return;
}
mScaleGestureDetector.onTouchEvent(event);
if (mScaleGestureDetector.isInProgress()) {
return;
}
}
mPanZoomController.handleEvent(event, !allowDefaultAction);
}