From 3194f6a80c7890071c9c200b952ccd089cb7cda0 Mon Sep 17 00:00:00 2001 From: konekoneko Date: Sat, 1 Mar 2014 00:29:36 +0900 Subject: [PATCH] =?utf8?q?=E3=83=9E=E3=83=AB=E3=83=81=E3=82=BF=E3=83=83?= =?utf8?q?=E3=83=81=E3=83=A2=E3=83=BC=E3=83=89=E3=81=A7=E3=82=AD=E3=83=A3?= =?utf8?q?=E3=83=AC=E3=83=83=E3=83=88=E3=82=92=E3=81=9A=E3=82=89=E3=81=97?= =?utf8?q?=E3=81=A6=E3=82=82=E9=81=B8=E6=8A=9E=E9=A0=98=E5=9F=9F=E3=81=8C?= =?utf8?q?=E7=A7=BB=E5=8B=95=E3=81=97=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C?= =?utf8?q?=E3=82=92=E8=A7=A3=E6=B1=BA=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Metro/FooEditEngine/FooTextBox.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Metro/FooEditEngine/FooTextBox.cs b/Metro/FooEditEngine/FooTextBox.cs index 88c7e7e..b5edb7a 100644 --- a/Metro/FooEditEngine/FooTextBox.cs +++ b/Metro/FooEditEngine/FooTextBox.cs @@ -810,11 +810,16 @@ namespace FooEditEngine.Metro else this._Controller.MoveCaretAndSelect(tp); } - if (this.peer != null) - this.peer.OnNotifyCaretChanged(); - this.Refresh(); - return; } + else + { + TextPoint tp = this.View.GetTextPointFromPostion(p); + this._Controller.MoveCaretAndSelect(tp); + } + if (this.peer != null) + this.peer.OnNotifyCaretChanged(); + this.Refresh(); + return; } if (e.Delta.Scale < 1) { -- 2.11.0