Remember scroll position when a new message gets added (#1638)

This commit is contained in:
Patrick 'Quezler' Mounier 2020-02-25 18:06:18 +01:00 committed by GitHub
parent 0c01554a6b
commit 8bbd8489e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,6 +231,8 @@ public class ChatFragment extends Table{
fadetime += 1f;
fadetime = Math.min(fadetime, messagesShown) + 1f;
if(scrollPos > 0) scrollPos++;
}
private static class ChatMessage{