Skip to content

Fix playlist scrolling showing only one track on page boundary#185

Merged
LargeModGames merged 1 commit intomainfrom
fix/playlist-scrolling-pagination
Mar 22, 2026
Merged

Fix playlist scrolling showing only one track on page boundary#185
LargeModGames merged 1 commit intomainfrom
fix/playlist-scrolling-pagination

Conversation

@LargeModGames
Copy link
Owner

Replace paged scrolling with smooth scrolling for song tables. The old paged mode would create incomplete visual pages when API page size didn't divide evenly by visible rows, causing the UI to briefly show just 1 song before loading the next page. Smooth scrolling keeps the selected item visible and scrolls one item at a time, providing a better user experience.

Replace paged scrolling with smooth scrolling for song tables. The old paged
mode would create incomplete visual pages when API page size didn't divide
evenly by visible rows, causing the UI to briefly show just 1 song before
loading the next page. Smooth scrolling keeps the selected item visible and
scrolls one item at a time, providing a better user experience.
Copilot AI review requested due to automatic review settings March 22, 2026 12:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the TUI table scrolling behavior to avoid “incomplete pages” at API page boundaries (notably in song/track tables), by using a smooth scroll offset calculation so the selected row stays visible without jumping by full “visual pages”.

Changes:

  • Removes paged (page-aligned) scrolling behavior for TableId::Song.
  • Simplifies table_scroll_offset to always use the smooth-scrolling offset calculation.

@LargeModGames LargeModGames merged commit e8151da into main Mar 22, 2026
13 checks passed
@LargeModGames LargeModGames deleted the fix/playlist-scrolling-pagination branch March 22, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants