summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
diff options
context:
space:
mode:
authorMatthias <bruz@outlook.de>2017-04-27 14:42:12 (GMT)
committerkingces95 <kingces95@users.noreply.github.com>2017-04-27 14:42:12 (GMT)
commit6ee219ca1db3f4d43370d39865c705d9c99ad38e (patch)
tree4dcb8fecaee5844d9543e2203a8cf724b2d7c42e /Xamarin.Forms.Platform.iOS
parent4fea85fa992f12d5e89c11a72bb38c3069ad9ebd (diff)
downloadxamarin-forms-6ee219ca1db3f4d43370d39865c705d9c99ad38e.zip
xamarin-forms-6ee219ca1db3f4d43370d39865c705d9c99ad38e.tar.gz
xamarin-forms-6ee219ca1db3f4d43370d39865c705d9c99ad38e.tar.bz2
Add check for instance of UITableView (#885)
Diffstat (limited to 'Xamarin.Forms.Platform.iOS')
-rw-r--r--Xamarin.Forms.Platform.iOS/ContextScrollViewDelegate.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.iOS/ContextScrollViewDelegate.cs b/Xamarin.Forms.Platform.iOS/ContextScrollViewDelegate.cs
index 9d5debf..e0e00c5 100644
--- a/Xamarin.Forms.Platform.iOS/ContextScrollViewDelegate.cs
+++ b/Xamarin.Forms.Platform.iOS/ContextScrollViewDelegate.cs
@@ -203,7 +203,7 @@ namespace Xamarin.Forms.Platform.iOS
return false;
UIScrollView scrollViewBeingScrolled;
- if (!s_scrollViewBeingScrolled.TryGetTarget(out scrollViewBeingScrolled) || ReferenceEquals(scrollViewBeingScrolled, scrollView))
+ if (!s_scrollViewBeingScrolled.TryGetTarget(out scrollViewBeingScrolled) || ReferenceEquals(scrollViewBeingScrolled, scrollView) || !ReferenceEquals(((ContextScrollViewDelegate)scrollViewBeingScrolled.Delegate)._table, ((ContextScrollViewDelegate)scrollView.Delegate)._table))
return false;
scrollView.SetContentOffset(new PointF(0, 0), false);