Skip to content

Commit d69a127

Browse files
committed
fix subtle errors
1 parent ee82fe1 commit d69a127

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/webpage/editor/editor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ class Editor extends EventTarget {
9191
if (index < linedown) {
9292
this.scroll.linedown = index;
9393
}
94-
if (index > linedown + this.height) {
95-
this.scroll.linedown = this.height + index;
94+
if (index >= linedown + this.height) {
95+
this.scroll.linedown = index - this.height + 1;
9696
}
9797
}
9898

0 commit comments

Comments
 (0)