only allow pixel gaps of < 1px for stick to bottom to prevent eleweb bug
https://github.com/matrix-org/matrix-react-sdk/pull/6751
This commit is contained in:
parent
2c415e37e7
commit
1df12b8c89
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ export class TimelineView extends TemplateView<TimelineViewModel> {
|
||||||
const tiles = this.tilesView!.root() as HTMLElement;
|
const tiles = this.tilesView!.root() as HTMLElement;
|
||||||
|
|
||||||
let bottomNodeIndex;
|
let bottomNodeIndex;
|
||||||
this.stickToBottom = Math.abs(scrollHeight - (scrollTop + clientHeight)) < 5;
|
this.stickToBottom = Math.abs(scrollHeight - (scrollTop + clientHeight)) < 1;
|
||||||
if (this.stickToBottom) {
|
if (this.stickToBottom) {
|
||||||
const len = this.value.tiles.length;
|
const len = this.value.tiles.length;
|
||||||
bottomNodeIndex = len - 1;
|
bottomNodeIndex = len - 1;
|
||||||
|
|
Reference in a new issue