new page: sync editor gutter with textarea scroll (#259)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user