Skip to content

Instantly share code, notes, and snippets.

@kellylawson
kellylawson / TouchHandler.cs
Last active November 27, 2023 03:10
Class to help with recognizing gestures in an InkPresenter for a Win2D canvas with custom drawing - allows 1 finger drawing while manually sending two finger gestures to a ScrollViewer
using Microsoft.Graphics.Canvas.UI.Xaml;
using System;
using System.Collections.Generic;
using System.Linq;
using Windows.Foundation;
using Windows.UI.Input;
using Windows.UI.Input.Inking;
using Windows.UI.Xaml.Controls;
namespace Colorist.Drawing