From 91bfd794656bc8d1968d027de3911ad48bcae0e6 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Sat, 12 Sep 2026 13:28:23 +0330 Subject: [PATCH] tajik recitation fix --- TajikGanjoor/wwwroot/js/recitation-sync.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/TajikGanjoor/wwwroot/js/recitation-sync.js b/TajikGanjoor/wwwroot/js/recitation-sync.js index 51edf3dd..9e411f3c 100644 --- a/TajikGanjoor/wwwroot/js/recitation-sync.js +++ b/TajikGanjoor/wwwroot/js/recitation-sync.js @@ -27,8 +27,10 @@ document.cookie = name + '=' + encodeURIComponent(value) + '; expires=' + expires + '; path=/'; } - // default: on, matching the previously-unconditional auto-scroll behavior - var scrollLock = getCookie('tgScrollLock') !== 'false'; + // default: off - the previously-unconditional auto-scroll was reported + // as confusing (users didn't know how to turn it off), so now it starts + // disabled and only turns on if a user explicitly enables it + var scrollLock = getCookie('tgScrollLock') === 'true'; function updateLockIcon() { var icon = document.getElementById('tg-sticky-lock-icon');