Fix attempt 1: sync editor gutter with textarea scroll #263

Merged
fen merged 1 commits from fix-259 into dev 2026-09-17 19:35:14 +00:00
Showing only changes of commit ee0cd7dcbd - Show all commits
+2
View File
@@ -9,6 +9,8 @@ function updateGutter() {
gutter.textContent = s;
}
content.addEventListener('input', updateGutter);
// #259: the editor scrolls itself; keep the gutter's numbers in step with it.
content.addEventListener('scroll', () => { gutter.scrollTop = content.scrollTop; });
updateGutter();
function toast(msg, kind) {