Commit 30380ed7 authored by Ilya Kirillov's avatar Ilya Kirillov

Исправлено зависание при переходе вниз с помощью клавиатуры.

parent b643285f
......@@ -15511,8 +15511,23 @@ CDocument.prototype.private_MoveCursorDown = function(StartX, StartY, AddToSelec
if (this.CurPage < NewPage)
{
this.CurPage = NewPage;
StartY += 0.1;
if (StartY > this.Pages[NewPage].Height)
{
NewPage++;
if (this.Pages.length - 1 < NewPage)
{
Result = false;
break;
}
StartY = 0;
}
else
{
StartY += 0.1;
}
this.CurPage = NewPage;
}
else
{
......@@ -15520,6 +15535,9 @@ CDocument.prototype.private_MoveCursorDown = function(StartX, StartY, AddToSelec
}
}
if (false === Result)
break;
CurY = StartY;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment