Merge remote-tracking branch 'origin/develop' into users-statuses-pinia

This commit is contained in:
Henry Jameson 2026-08-12 15:57:42 +03:00
commit 657f405ee0
27 changed files with 167 additions and 20 deletions

View file

@ -213,7 +213,10 @@ const Timeline = {
// Start from approximating the index of some visible status by using the
// the center of the screen on the timeline.
let approxIndex = Math.floor(statuses.length * (centerOfScreen / height))
let approxIndex = Math.min(
Math.floor(statuses.length * (centerOfScreen / height)),
statuses.length - 1,
)
let err = statuses[approxIndex].getBoundingClientRect().y
// if we have a previous scroll index that can be used, test if it's