From 073b1df8a3ff41b1a1b8de2a2cbf8c8cf5967b9e Mon Sep 17 00:00:00 2001 From: Paddy Xu Date: Sat, 6 May 2017 22:58:56 +0300 Subject: [PATCH] TODO: touch gesture zoom --- .../QuickLook.Plugin.ImageViewer/ImagePanel.xaml.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml.cs b/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml.cs index fbf863bd1..7405ca38f 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.ImageViewer/ImagePanel.xaml.cs @@ -30,6 +30,13 @@ public ImagePanel(string path) viewPanel.PreviewMouseLeftButtonDown += ViewPanel_PreviewMouseLeftButtonDown; viewPanel.PreviewMouseMove += ViewPanel_PreviewMouseMove; + + viewPanel.TouchDown += ViewPanel_TouchDown; + } + + private void ViewPanel_TouchDown(object sender, TouchEventArgs e) + { + // TODO: touch support } private void LoadImage(string path)