diff options
| author | Ben Sima <ben@bensima.com> | 2025-12-01 21:44:49 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-12-01 21:44:49 -0500 |
| commit | f1b81c53f243fbb3036fee9531294de6d7df5763 (patch) | |
| tree | f5374dd63d4ff0ef43ed380a0cbf3ad9813ab5cf /Omni/Jr | |
| parent | 7da1c7e717af3cadf927b5f6efb253f0d10423a8 (diff) | |
Fix autoscroll toggle not being respected
timelineScrollScript now checks autoscrollEnabled before scrolling
Diffstat (limited to 'Omni/Jr')
| -rw-r--r-- | Omni/Jr/Web/Components.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Omni/Jr/Web/Components.hs b/Omni/Jr/Web/Components.hs index 4429f75..3a9df0f 100644 --- a/Omni/Jr/Web/Components.hs +++ b/Omni/Jr/Web/Components.hs @@ -1594,6 +1594,7 @@ timelineScrollScript = ] ( Text.unlines [ "(function() {", + " if (typeof autoscrollEnabled !== 'undefined' && !autoscrollEnabled) return;", " var log = document.querySelector('.timeline-events');", " if (log) {", " var isNearBottom = log.scrollHeight - log.scrollTop - log.clientHeight < 100;", |
