OSDN Git Service
(root)
/
fooeditengine
/
FooEditEngine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
86e36bf
)
キャレットが画面がにはみ出た時の挙動を以前のに戻した
author
test
<test@yahoo.co.jp>
Thu, 7 Jan 2021 15:21:32 +0000
(
00:21
+0900)
committer
test
<test@yahoo.co.jp>
Thu, 7 Jan 2021 15:21:32 +0000
(
00:21
+0900)
Core/EditView.cs
patch
|
blob
|
history
diff --git
a/Core/EditView.cs
b/Core/EditView.cs
index
35dc3de
..
ee52526
100644
(file)
--- a/
Core/EditView.cs
+++ b/
Core/EditView.cs
@@
-501,7
+501,7
@@
namespace FooEditEngine
/// <summary>
/// 指定した座標の一番近くにあるTextPointを取得する
/// </summary>
/// <summary>
/// 指定した座標の一番近くにあるTextPointを取得する
/// </summary>
- /// <param name="p">ã
\83
\86
ã
\82
ã
\82
¹ã
\83
\88
エリアを左上とする相対位置</param>
+ /// <param name="p">ã
\83
\93
ã
\83
¥ã
\83
¼
エリアを左上とする相対位置</param>
/// <param name="searchRange">探索範囲</param>
/// <returns>レイアウトラインを指し示すTextPoint</returns>
public TextPoint GetTextPointFromPostion(Point p,TextPointSearchRange searchRange = TextPointSearchRange.TextAreaOnly)
/// <param name="searchRange">探索範囲</param>
/// <returns>レイアウトラインを指し示すTextPoint</returns>
public TextPoint GetTextPointFromPostion(Point p,TextPointSearchRange searchRange = TextPointSearchRange.TextAreaOnly)
@@
-767,13
+767,12
@@
namespace FooEditEngine
}
else if(caret_y >= alignedHeight)
{
}
else if(caret_y >= alignedHeight)
{
- double caretYFromTextArea = alignedHeight;
- var newsrc = this.GetNearstRowAndOffsetY(tp.row, -caretYFromTextArea);
+ var newsrc = this.GetNearstRowAndOffsetY(tp.row, -(alignedHeight - relPoint.Y));
if(newsrc == null)
this.Document.Src = new SrcPoint(this.Src.X, tp.row, 0);
else
this.Document.Src = new SrcPoint(this.Src.X, newsrc.Item1, -newsrc.Item2);
if(newsrc == null)
this.Document.Src = new SrcPoint(this.Src.X, tp.row, 0);
else
this.Document.Src = new SrcPoint(this.Src.X, newsrc.Item1, -newsrc.Item2);
- y =
caretYFromTextArea
;
+ y =
alignedHeight
;
}
y += this.render.TextArea.Y;
result = true;
}
y += this.render.TextArea.Y;
result = true;