Add multi-touch support to Tap Gesture

VelocityVelocity NZMember ✭✭✭


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.

0 votes

Accepted · Last Updated


Sign In or Register to comment.