new page: sync editor gutter with textarea scroll (#259)
This commit is contained in:
1 parent
ca785f5648
commit
ee0cd7dcbd
1 file changed
+2
@@ -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