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) {
|
||||
|
|
|
@ -32,6 +32,7 @@ export interface ViewRoomPayload extends Pick<ActionPayload, "action"> {
|
|||
|
||||
event_id?: string; // the event to ensure is in view if any
|
||||
highlighted?: boolean; // whether to highlight `event_id`
|
||||
scroll_into_view?: boolean; // whether to scroll `event_id` into view
|
||||
should_peek?: boolean; // whether we should peek the room if we are not yet joined
|
||||
joining?: boolean; // whether we have already sent a join request for this room
|
||||
via_servers?: string[]; // the list of servers to join via if no room_alias is provided
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue