From bcb9617d841b7862365334ebf4ce2d8e81ca7706 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 30 Nov 2025 09:08:59 -0500 Subject: [PATCH] Fix stuttering in chapter view keyboard navigation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed scrollIntoView behavior from 'smooth' to 'auto' to prevent overlapping scroll animations when holding down arrow keys. This eliminates stuttering and makes rapid navigation smooth. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- kjvstudy_org/templates/chapter.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kjvstudy_org/templates/chapter.html b/kjvstudy_org/templates/chapter.html index b096c13..e873207 100644 --- a/kjvstudy_org/templates/chapter.html +++ b/kjvstudy_org/templates/chapter.html @@ -462,7 +462,7 @@ document.addEventListener('DOMContentLoaded', function() { selectedVerseIndex = -1; actionButtons[selectedActionIndex].classList.add('selected'); actionButtons[selectedActionIndex].scrollIntoView({ - behavior: 'smooth', + behavior: 'auto', block: 'center' }); } @@ -478,9 +478,9 @@ document.addEventListener('DOMContentLoaded', function() { // Add selection to new verse verses[selectedVerseIndex].classList.add('selected'); - // Scroll into view + // Scroll into view with instant behavior to prevent stuttering when holding down keys verses[selectedVerseIndex].scrollIntoView({ - behavior: 'smooth', + behavior: 'auto', block: 'center' }); }