mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-31 02:08:03 +01:00
Merge pull request #684 from BDisp/scroll-down
Fixes ScrollDown that was not working.
This commit is contained in:
@@ -566,7 +566,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 (ny == contentOffset.Y)
|
||||
return false;
|
||||
ContentOffset = new Point (contentOffset.X, ny);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user