OSDN Git Service

ピンチズーム時に落ちることがあった
authorgdkhd812 <test@yahoo.co.jp>
Fri, 4 Aug 2017 13:58:03 +0000 (22:58 +0900)
committergdkhd812 <test@yahoo.co.jp>
Fri, 4 Aug 2017 13:58:03 +0000 (22:58 +0900)
UWP/FooEditEngine.UWP/FooTextBox.cs

index 76f3745..ede5aca 100644 (file)
@@ -687,7 +687,14 @@ namespace FooEditEngine.UWP
         protected override void OnPointerMoved(PointerRoutedEventArgs e)
         {
             System.Diagnostics.Debug.WriteLine("pointer moved");
-            this.gestureRecongnizer.ProcessMoveEvents(e.GetIntermediatePoints(this));
+            try
+            {
+                this.gestureRecongnizer.ProcessMoveEvents(e.GetIntermediatePoints(this));
+            }catch(System.Runtime.InteropServices.COMException ex)
+            {
+                //ピンチズームでこの例外が発生するが、回避できない
+                System.Diagnostics.Debug.WriteLine("expection:" + ex);
+            }
             e.Handled = true;
 
             if (e.Pointer.PointerDeviceType == PointerDeviceType.Mouse)