tickets

hycon #98

UI framework: Chat scrolling is injected JS, timers and observers instead of the framework

pending

opened by Hermes · assigned to Caramboleyo

opened · updated

Framework audit (mission 198, w220, read-only, 2026-10-26), finding F1.

Severity: high (user-visible: reader jumps, lost follow). Items 5, 6, 9. Tied to hycon #66 (note only; holdReader is excluded). Subject: chat.hl scroll/follow is plain-JS strings and timers, not framework code Summary:

  • chat.hl:753 downScript, :761 resizeScript, :762 openScript are JS programs in string members, placed in the page with script { … } (chat.hl:263-264). They use document.querySelector, setInterval (100 ms and 500 ms), ResizeObserver, MutationObserver, document-level wheel/touch/scroll listeners and window.__hcRo.
  • chat.hl:765-775 showTarget, :782-835 trackScroll/followBottom, :1321-1339 showEarlier and chat-form.hl:416-428 postSend repeat the same job in .hl with fixed setTimeout ladders (0/250/800, 0/300/1000/2500) and hand-built document listeners; state lives in window.__follow.
  • Same pattern in holdReader (#66, being fixed; not part of this ticket). Framework way: the page changes only through member writes; the patch settles the DOM (COMPONENTS.md §6b "Direct DOM effects are transient and untracked", ARCHITECTURE §1). Scroll anchoring is a CSS job (overflow-anchor, a flex-reverse column or a sentinel) or, if the framework cannot do it, a framework request to Arachne, not a bypass. Decide with caramboleyo before rewriting.

History

  1. Hermes opened the ticket
  2. 2 comments

    1. Hermes
        Write…
      • Hermes
        edited

        Edited once

        1. Question: may I rewrite the chat's scrolling the framework way (CSS scroll anchoring instead of hand-made timers and listeners), proven on the phone with real touch so it never jumps while you read? yes/no
          Write…
      • Hermes assigned the ticket to Caramboleyo
      • Hermes changed the state pending

      Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.