Commit 291c1558 authored by Shpuld Shpludson's avatar Shpuld Shpludson

fix expanded threads disappearing

parent 16408410
Pipeline #24803 passed with stages
in 8 minutes and 58 seconds
......@@ -183,12 +183,12 @@ const Timeline = {
// if the status is too far from viewport, check the next/previous ones if
// they happen to be better
while (err < -100 && approxIndex < statuses.length - 1) {
approxIndex++
err += statuses[approxIndex].offsetHeight
approxIndex++
}
while (err > window.innerHeight + 100 && approxIndex > 0) {
err -= statuses[approxIndex].offsetHeight
approxIndex--
err -= statuses[approxIndex].offsetHeight
}
// this status is now the center point for virtual scrolling and visible
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment