mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 03:08:38 +07:00
Remember scroll position when a new message gets added (#1638)
This commit is contained in:
parent
0c01554a6b
commit
8bbd8489e0
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user