Fix MessageBox scroll stutter when state updates while close to the bottom
This commit is contained in:
parent
c1e1f2c327
commit
7ad76273c0
7 changed files with 109 additions and 86 deletions
|
@ -28,7 +28,8 @@ export default class UserList extends PureComponent {
|
|||
|
||||
if (index === 0) {
|
||||
return 12;
|
||||
} if (index === users.length + 1) {
|
||||
}
|
||||
if (index === users.length + 1) {
|
||||
return 10;
|
||||
}
|
||||
return 24;
|
||||
|
@ -39,7 +40,8 @@ export default class UserList extends PureComponent {
|
|||
|
||||
if (index === 0) {
|
||||
return 'top';
|
||||
} if (index === users.length + 1) {
|
||||
}
|
||||
if (index === users.length + 1) {
|
||||
return 'bottom';
|
||||
}
|
||||
return index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue