From: konekoneko Date: Fri, 28 Feb 2014 15:29:36 +0000 (+0900) Subject: マルチタッチモードでキャレットをずらしても選択領域が移動しない問題を解決した X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;ds=sidebyside;h=3194f6a80c7890071c9c200b952ccd089cb7cda0;p=fooeditengine%2FFooEditEngine.git マルチタッチモードでキャレットをずらしても選択領域が移動しない問題を解決した --- 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) {