зеркало из https://github.com/mozilla/gecko-dev.git
Bug 960146. r=kats
This commit is contained in:
Родитель
d270b9fd52
Коммит
90b3798210
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче