Skip to content

Instantly share code, notes, and snippets.

@bbenetskyy
Created December 31, 2021 08:39
Show Gist options
  • Save bbenetskyy/b748e63c8bea2dda9f0b387f8b09f4b6 to your computer and use it in GitHub Desktop.
Save bbenetskyy/b748e63c8bea2dda9f0b387f8b09f4b6 to your computer and use it in GitHub Desktop.
[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