PanZoomGestureRecognizer no longer intercepts touches intended for other overlapping views. #400
This commit is contained in:
Родитель
9a8aa3c8d0
Коммит
d2feac52a8
|
@ -87,6 +87,9 @@ namespace OxyPlot.MonoTouch
|
|||
HandlePanZoomGesture();
|
||||
});
|
||||
|
||||
// Do not intercept touches on overlapping views
|
||||
this.panZoomGesture.ShouldReceiveTouch += (recognizer, touch) => touch.View == this;
|
||||
|
||||
this.AddGestureRecognizer(this.panZoomGesture);
|
||||
}
|
||||
|
||||
|
|
|
@ -85,6 +85,9 @@ namespace OxyPlot.Xamarin.iOS
|
|||
HandlePanZoomGesture();
|
||||
});
|
||||
|
||||
// Do not intercept touches on overlapping views
|
||||
this.panZoomGesture.ShouldReceiveTouch += (recognizer, touch) => touch.View == this;
|
||||
|
||||
this.AddGestureRecognizer(this.panZoomGesture);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче