Fix smooth scrolling when ChannelView is full (#4501)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Andrew Opalach
2023-06-18 12:09:11 +00:00
committed by GitHub
parent 4b40b9a310
commit 0e60ca10d0
6 changed files with 152 additions and 140 deletions
+4
View File
@@ -78,6 +78,7 @@ struct Selection {
if (offset > this->selectionMin.messageIndex)
{
this->selectionMin.messageIndex = 0;
this->selectionMin.charIndex = 0;
}
else
{
@@ -87,6 +88,7 @@ struct Selection {
if (offset > this->selectionMax.messageIndex)
{
this->selectionMax.messageIndex = 0;
this->selectionMax.charIndex = 0;
}
else
{
@@ -96,6 +98,7 @@ struct Selection {
if (offset > this->start.messageIndex)
{
this->start.messageIndex = 0;
this->start.charIndex = 0;
}
else
{
@@ -105,6 +108,7 @@ struct Selection {
if (offset > this->end.messageIndex)
{
this->end.messageIndex = 0;
this->end.charIndex = 0;
}
else
{