mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 960146. r=kats
This commit is contained in:
parent
971bff0811
commit
e2958d9688
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user