diff options
author | Samantha Houts <samantha@teamredwall.com> | 2016-08-30 11:14:13 -0700 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-08-30 11:14:13 -0700 |
commit | ab0daa194734be0e45d8582e9254c447b464b27f (patch) | |
tree | 8549bb2248d8d51987b0e017c2855622d30209d9 /Xamarin.Forms.Platform.Android/InnerGestureListener.cs | |
parent | 1b7250167ff027bbd5ce3d2950a3e3495a13a5f7 (diff) | |
download | xamarin-forms-ab0daa194734be0e45d8582e9254c447b464b27f.tar.gz xamarin-forms-ab0daa194734be0e45d8582e9254c447b464b27f.tar.bz2 xamarin-forms-ab0daa194734be0e45d8582e9254c447b464b27f.zip |
[A] PanGestureRecognizer will consistently send Completed event (#313)
* Adjust gallery page for reproduction
* [A] Forward OnTouchEvent to Listener...
...and end scrolling on Up.
Diffstat (limited to 'Xamarin.Forms.Platform.Android/InnerGestureListener.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Android/InnerGestureListener.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Android/InnerGestureListener.cs b/Xamarin.Forms.Platform.Android/InnerGestureListener.cs index f83a1ac7..8611af2d 100644 --- a/Xamarin.Forms.Platform.Android/InnerGestureListener.cs +++ b/Xamarin.Forms.Platform.Android/InnerGestureListener.cs @@ -38,12 +38,18 @@ namespace Xamarin.Forms.Platform.Android } // This is needed because GestureRecognizer callbacks can be delayed several hundred milliseconds - // which can result in the need to resurect this object if it has already been disposed. We dispose + // which can result in the need to resurrect this object if it has already been disposed. We dispose // eagerly to allow easier garbage collection of the renderer internal InnerGestureListener(IntPtr handle, JniHandleOwnership ownership) : base(handle, ownership) { } + internal void OnTouchEvent(MotionEvent e) + { + if (e.Action == MotionEventActions.Up) + EndScrolling(); + } + bool GestureDetector.IOnDoubleTapListener.OnDoubleTap(MotionEvent e) { if (_tapDelegate == null || _tapGestureRecognizers == null) |