OSDN Git Service

キャレットが先頭行以外クリックできないバグを修正した
authortest <test@yahoo.co.jp>
Sat, 12 Dec 2020 13:27:17 +0000 (22:27 +0900)
committertest <test@yahoo.co.jp>
Sat, 12 Dec 2020 13:27:17 +0000 (22:27 +0900)
Core/EditView.cs

index ed3bd2e..8a7dba5 100644 (file)
@@ -735,7 +735,7 @@ namespace FooEditEngine
             {
                 int PhyLineCountOnScreen = (int)(this.render.TextArea.Height / this.render.emSize.Height);
                 //計算量を減らすため
-                if (tp.row < this.Src.Row || tp.row + PhyLineCountOnScreen * 2 > this.Src.Row)
+                if (tp.row < this.Src.Row || this.Src.Row + PhyLineCountOnScreen * 2 < tp.row)
                     this.Document.Src = new SrcPoint(this.Src.X, tp.row, -relPoint.Y);
 
                 //キャレットのY座標を求める