| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The comment claimed the renderer rebuilds a row scrolled out of view and drops its class. It does not: Row.create() is guarded, Row.initialize() re-uses the element, and our renderer only detaches it. The gap is a row that has never been rendered, so the sweep finds no element to mark.
| Back | FazBrowse Home | New Git URL |
📝 PR Overview
#975 explained the row mark with a mechanism that does not exist: that the renderer de-initialises a row scrolled out of view and rebuilds it, dropping the class. A reader who trusts that comment would expect an ordinary scroll to lose a mark, and would look in the wrong place when the mark misbehaves.
What actually happens: Row.create() is guarded by this.created, Row.initialize() deletes cells but re-uses the element, RowManager.styleRow adds and removes parity classes rather than assigning className, and our renderer only detaches and re-attaches the element. A class on a row element survives scrolling. The gap the declarative mark closes is the first render: a row that has never been on screen has no element, so a sweep of what is rendered cannot reach it.
🛠️ Changes made
🧩 Type of change (check all applicable)
📷 Screenshots / gifs / video [optional]
N/A.
🔗 Related Issues
Corrects comments added in #975.
✅ Tests added?
Comments and one test name. The nine LocatedRowMarker tests still pass unchanged.
📚 Docs updated?
Nothing user-visible changes.
Anything else we need to know? [optional]
No code changes: 6 insertions and 6 deletions, all inside comments and one it title.