mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 06:51:30 -08:00
Remember scroll position when a new message gets added (#1638)
This commit is contained in:
parent
0c01554a6b
commit
8bbd8489e0
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue