mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
make stick headers jump in a bit later so the transition is less jumpy
This commit is contained in:
parent
b370e3f078
commit
8cd20eedeb
@ -121,7 +121,7 @@ export default class LeftPanel2 extends React.Component<IProps, IState> {
|
||||
header.classList.add("mx_RoomSublist2_headerContainer_stickyBottom");
|
||||
header.style.top = `unset`;
|
||||
gotBottom = true;
|
||||
} else if (slRect.top < top) {
|
||||
} else if ((slRect.top - (headerHeight / 3)) < top) {
|
||||
header.classList.add("mx_RoomSublist2_headerContainer_sticky");
|
||||
header.classList.add("mx_RoomSublist2_headerContainer_stickyTop");
|
||||
header.style.top = `${rlRect.top}px`;
|
||||
|
Loading…
Reference in New Issue
Block a user