Created
December 31, 2021 08:39
-
-
Save bbenetskyy/b748e63c8bea2dda9f0b387f8b09f4b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[assembly: ExportRenderer(typeof(DraggableView), typeof(DraggableViewRenderer))] | |
namespace LOTR.Android.Renderer | |
{ | |
public class DraggableViewRenderer : VisualElementRenderer<Xamarin.Forms.View> | |
{ | |
#region Fields | |
private CancellationTokenSource _throttleCts = new(); | |
private float _deltaX; | |
private float _deltaY; | |
private bool _touchedDown; | |
private DraggableView _draggableView; | |
#endregion Fields | |
#region Constructors | |
public DraggableViewRenderer(Context context) : base(context) | |
{ | |
_touchedDown = false; | |
} | |
#endregion Constructors | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment