Sidebar highlights panel jumps to the bottom when clicking a highlight, and list jumps around while scrolling
Bug Description
In the left sidebar's highlights/annotations panel, there are two related scrolling problems:
Clicking a highlight scrolls the panel to the bottom. After scrolling partway through my highlights and clicking one to navigate to it in the book, the sidebar list jumps all the way to the bottom of the highlights panel. This loses my place in the list, so I have to scroll back to find where I was.
The list jumps around while scrolling. When scrolling through the highlights panel (without clicking anything), the list occasionally jumps to a different position. This makes it hard to scroll smoothly and keep track of where I am, especially in books with many highlights.
Video of the issue viewable in Google Drive via this link.
Steps to Reproduce
- Open a book that has a large number of highlights (enough that the highlights panel needs scrolling).
- Open the left sidebar and switch to the highlights/annotations panel.
- Scroll partway down the list.
- Click on any highlight.
- Observe that the book navigates to the highlight, but the sidebar list scrolls to the bottom of the panel.
- Scroll back up and continue scrolling through the list slowly.
- Observe that the list occasionally jumps to a different position on its own.
Expected Behavior
- Clicking a highlight should navigate to it in the book while keeping the sidebar list at its current scroll position. If the panel does need to scroll, it should bring the clicked highlight into view (for example, at the top of the panel), not jump to the bottom.
- Scrolling through the highlights list should be smooth and stable, with no unexpected jumps.
Reproduction File
No response
Operating System
macOS
OS Version
27.0
Readest Version
0.12.10
Custom CSS
No response
Source: readest/readest