Fix: Remove jittery timeline scrolling after jumping to an event (#8263)
* Fix: Remove jittery timeline scrolling after jumping to an event * Fix: Remove onUserScroll handler and merge it with onScroll * Fix: Reset scrollIntoView state earlier Co-authored-by: Janne Mareike Koschinski <jannemk@element.io>
This commit is contained in:
parent
285dc25b3e
commit
579a166113
11 changed files with 118 additions and 87 deletions
|
@ -26,6 +26,7 @@ export const showThread = (props: {
|
|||
rootEvent: MatrixEvent;
|
||||
initialEvent?: MatrixEvent;
|
||||
highlighted?: boolean;
|
||||
scroll_into_view?: boolean;
|
||||
push?: boolean;
|
||||
}) => {
|
||||
const push = props.push ?? false;
|
||||
|
@ -35,6 +36,7 @@ export const showThread = (props: {
|
|||
threadHeadEvent: props.rootEvent,
|
||||
initialEvent: props.initialEvent,
|
||||
isInitialEventHighlighted: props.highlighted,
|
||||
initialEventScrollIntoView: props.scroll_into_view,
|
||||
},
|
||||
};
|
||||
if (push) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue