PanZoomGestureRecognizer no longer intercepts touches intended for other overlapping views. #400

This commit is contained in:
cclarke 2015-03-08 19:57:27 -07:00
Родитель 9a8aa3c8d0
Коммит d2feac52a8
2 изменённых файлов: 6 добавлений и 0 удалений

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

@ -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);
}