OSDN Git Service

マルチタッチモードでキャレットをずらしても選択領域が移動しない問題を解決した
authorkonekoneko <test2214@hotmail.co.jp>
Fri, 28 Feb 2014 15:29:36 +0000 (00:29 +0900)
committerkonekoneko <test2214@hotmail.co.jp>
Fri, 28 Feb 2014 15:29:36 +0000 (00:29 +0900)
Metro/FooEditEngine/FooTextBox.cs

index 88c7e7e..b5edb7a 100644 (file)
@@ -810,11 +810,16 @@ namespace FooEditEngine.Metro
                         else\r
                             this._Controller.MoveCaretAndSelect(tp);\r
                     }\r
-                    if (this.peer != null)\r
-                        this.peer.OnNotifyCaretChanged();\r
-                    this.Refresh();\r
-                    return;\r
                 }\r
+                else\r
+                {\r
+                    TextPoint tp = this.View.GetTextPointFromPostion(p);\r
+                    this._Controller.MoveCaretAndSelect(tp);\r
+                }\r
+                if (this.peer != null)\r
+                    this.peer.OnNotifyCaretChanged();\r
+                this.Refresh();\r
+                return;\r
             }\r
             if (e.Delta.Scale < 1)\r
             {\r