mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
Fixes https://github.com/migueldeicaza/gui.cs/pull/681#issuecomment-643625748 ScrollDown.
This commit is contained in:
@@ -556,7 +556,7 @@ namespace Terminal.Gui {
|
||||
public bool ScrollDown (int lines)
|
||||
{
|
||||
var ny = Math.Max (-contentSize.Height, contentOffset.Y - lines);
|
||||
if (Math.Abs (ny) == contentSize.Height)
|
||||
if (Math.Abs (ny) == contentSize.Height - 1)
|
||||
return false;
|
||||
ContentOffset = new Point (contentOffset.X, ny);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user