[PR #2747] [CLOSED] fix scroll to the current chapter fail #3793

Closed
opened 2026-04-25 00:17:05 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/2747
Author: @fengqi
Created: 3/15/2024
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • f496093 fix scroll to the current chapter fail

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 client/components/modals/ChaptersModal.vue (+3 -1)

📄 Description

While using audiobookshelf in my environment, I encountered an issue where automatic scrolling to the current chapter wasn't functioning. Upon investigation, I discovered that the value of document.getElementById(chapter-row-${this.currentChapterId}) within the scrollToChapter() method was returning null. After adding a setTimeout, I observed that the issue was resolved.

As I'm not well-versed in Vue, this solution may not be optimal.

my environment details:
audiobookshelf: 2.8.0
chrome version: 122.0.6261.112


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/2747 **Author:** [@fengqi](https://github.com/fengqi) **Created:** 3/15/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`f496093`](https://github.com/advplyr/audiobookshelf/commit/f49609380d01b87d17320e3cdf2c639f7d9be262) fix scroll to the current chapter fail ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `client/components/modals/ChaptersModal.vue` (+3 -1) </details> ### 📄 Description While using `audiobookshelf` in my environment, I encountered an issue where automatic scrolling to the current chapter wasn't functioning. Upon investigation, I discovered that the value of `document.getElementById(chapter-row-${this.currentChapterId})` within the `scrollToChapter()` method was returning null. After adding a `setTimeout`, I observed that the issue was resolved. As I'm not well-versed in Vue, this solution may not be optimal. my environment details: audiobookshelf: 2.8.0 chrome version: 122.0.6261.112 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:17:05 +02:00
adam closed this issue 2026-04-25 00:17:05 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3793