OSDN Git Service

論理スクロールに対応した。これにともないメソッド名を変更した
[fooeditengine/FooEditEngine.git] / Core / EditView.cs
index 51c6088..d9dccc3 100644 (file)
@@ -821,26 +821,6 @@ namespace FooEditEngine
         }
 
         /// <summary>
-        /// 指定した座標までスクロールする
-        /// </summary>
-        /// <param name="x"></param>
-        /// <param name="row"></param>
-        /// <remarks>
-        /// 範囲外の座標を指定した場合、範囲内に収まるように調整されます
-        /// </remarks>
-        public void Scroll(double x, double y)
-        {
-            if (x < 0)
-                x = 0;
-            if (y < 0)
-                y = 0;
-            double totalHeight = this.LayoutLines.Count * this.render.emSize.Height;
-            if (y > totalHeight)
-                y = totalHeight - this.render.TextArea.Height;
-            base.TryScroll(x, y);
-        }
-
-        /// <summary>
         /// 指定行までスクロールする
         /// </summary>
         /// <param name="row">行</param>