element-hq / element-hq/element-web

Timeline forward-paginates infinitely when jumping to hidden events

Open
#22,123 5 comments 1 reaction 0 assignees View on GitHub
A-Timeline A-Timeline-Jumpy-Scroll O-Occasional S-Major T-Defect X-Regression Z-Rageshake
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Copy the permalink of a hidden event somewhere in the scrollback of a room
2. Click on that permalink

### Outcome

#### What did you expect?

To jump to the area of the hidden event, and stay there

#### What happened instead?

The timeline jumps to the hidden event, and then forward-paginates infinitely as fast as possible, with scroll offset stuck to the bottom. Clicking the 'Jump to bottom' button or another permalink stops this behavior.

Rageshake attached with [`ScrollPanel` and `TimelinePanel` debug logs enabled](https://github.com/matrix-org/matrix-react-sdk/pull/8513).

### Operating system

NixOS unstable

### Browser information

Firefox 99.0.1

### URL for webapp

develop.element.io

### Application version

Element version: 1783645108b8-react-617c0e3c50c2-js-706b4d605481 Olm version: 3.2.8

### Homeserver

Synapse 1.58.0

### Will you send logs?

Yes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.