Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Add multi-touch support to Tap Gesture

VelocityVelocity NZMember ✭✭✭

Summary

Add multi-touch support to the the existing TapGestureRecognizer. While multiple taps are supported, only a single touch point can be tracked.
This would add support to detect the difference between a single-finger tap, two-finger tap etc.

API Changes

One new bindable property:

    /// <summary>
    /// Gets or sets the number of touches required.
    /// </summary>
    public int NumberOfTouchesRequired
    {
        get { return (int)GetValue(NumberOfTouchesRequiredProperty); }
        set { SetValue(NumberOfTouchesRequiredProperty, value); }
    }

Intended Use Case

Able to detect and respond to a single tap, multi-finger tap as separate commands/events.
E.g. Useful for natural gesture interaction in the UI, media playback etc.

We have already built a custom tap gesture recognizer which supports multi-touch across iOS, Android and UWP.
Happy to implement if accepted.

Tagged:

Accepted · Last Updated

Posts

Sign In or Register to comment.