mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
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
@ -143,7 +143,7 @@ export class TimelineView extends TemplateView<TimelineViewModel> {
|
||||
const tiles = this.tilesView!.root() as HTMLElement;
|
||||
|
||||
let bottomNodeIndex;
|
||||
this.stickToBottom = Math.abs(scrollHeight - (scrollTop + clientHeight)) < 5;
|
||||
this.stickToBottom = Math.abs(scrollHeight - (scrollTop + clientHeight)) < 1;
|
||||
if (this.stickToBottom) {
|
||||
const len = this.value.tiles.length;
|
||||
bottomNodeIndex = len - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user