# Bug report: Scroll jitters

**URL:** <https://forum.kinopio.club/t/bug-report-scroll-jitters/1285>\
**Category:** Fixed or Completed\
**Created:** [May 5, 2024, 6:32am UTC](https://forum.kinopio.club/t/bug-report-scroll-jitters/1285 "2024-05-05T06:32:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonytran](https://forum.kinopio.club/user_avatar/forum.kinopio.club/tonytran/32/2004_2.png) [@tonytran](https://forum.kinopio.club/u/tonytran)\
**Post date:** [May 5, 2024, 6:32am UTC](https://forum.kinopio.club/t/bug-report-scroll-jitters/1285/1 "2024-05-05T06:32:37Z")

</div>

Hi,  
Reported on discord but will be adding it here as well for preservation.

In the explore tab (Everyone, following) - scrolling with mouse wheel or with cursor, at some points, or passing particular spaces in the list. it begins to jitter and different velocities.  
You can also see some of the titles of spaces jitter when it’s on a low jitter phase.

Thanks!

---

<div class="post-metadata">

**Author:** ![pirijan](https://forum.kinopio.club/user_avatar/forum.kinopio.club/pirijan/32/7_2.png) [@pirijan](https://forum.kinopio.club/u/pirijan)\
**Post date:** [May 5, 2024, 3:32pm UTC](https://forum.kinopio.club/t/bug-report-scroll-jitters/1285/2 "2024-05-05T15:32:03Z")

</div>

thx vid in [Discord](https://discord.com/channels/857305113936134204/1087809513576484945/1236294894302269482)

---

<div class="post-metadata">

**Author:** ![pirijan](https://forum.kinopio.club/user_avatar/forum.kinopio.club/pirijan/32/7_2.png) [@pirijan](https://forum.kinopio.club/u/pirijan)\
**Post date:** [May 6, 2024, 3:15pm UTC](https://forum.kinopio.club/t/bug-report-scroll-jitters/1285/3 "2024-05-06T15:15:27Z")

</div>

connected to [Broken list of spaces](https://forum.kinopio.club/t/broken-list-of-spaces/1131)

---

<div class="post-metadata">

**Author:** ![pirijan](https://forum.kinopio.club/user_avatar/forum.kinopio.club/pirijan/32/7_2.png) [@pirijan](https://forum.kinopio.club/u/pirijan)\
**Post date:** [May 6, 2024, 3:20pm UTC](https://forum.kinopio.club/t/bug-report-scroll-jitters/1285/4 "2024-05-06T15:20:13Z")

</div>

mini spec for fixing this (cc @lucas):

so the client app renders lists of spaces with the `SpaceList` component. Because these lists can get pretty long though (which can freeze safari for a couple seconds when initially rendering), I try and only render the content of each space `li` when it’s viewable. this happens in SpaceList `itemIsVisible()` , but the way I calculate things is a little incorrect and can lead to jumpy scrolling or rendering bugs in long lists:

> [@Bug report: Scroll jitters](https://forum.kinopio.club/t/bug-report-scroll-jitters/1285/3):
>
> connected to [Broken list of spaces](https://forum.kinopio.club/t/broken-list-of-spaces/1131)

> [@Broken list of spaces](https://forum.kinopio.club/t/broken-list-of-spaces/1131):
>
> When scrolling to the bottom of the list of spaces, this appears. And one can still partially scroll!

the thing that makes this optimization really challenging is that the list items vary in height.

Ideally I want the user to be able to always see the correct scrollbar length, but if we choose to go with dynamically inserting things into the list as you scroll and the scrollbar needs to dynamically adjust that may also be okay

---

<div class="post-metadata">

**Author:** ![pirijan](https://forum.kinopio.club/user_avatar/forum.kinopio.club/pirijan/32/7_2.png) [@pirijan](https://forum.kinopio.club/u/pirijan)\
**Post date:** [June 3, 2024, 3:17pm UTC](https://forum.kinopio.club/t/bug-report-scroll-jitters/1285/5 "2024-06-03T15:17:17Z")

</div>

this should now be fixed
