Skip to content

Commit 298d7d0

Browse files
scrolling auto
1 parent 613272d commit 298d7d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ if __name__ == "__main__":
11121112
const targetScroll = Math.min(maxScroll, lineOffsetTop - containerHeight + lineHeight + bottomBuffer);
11131113
container.scrollTo({
11141114
top: Math.max(0, targetScroll),
1115-
behavior: 'smooth'
1115+
behavior: 'auto'
11161116
});
11171117
} else {
11181118
// Normal centering behavior for other lines
@@ -1133,7 +1133,7 @@ if __name__ == "__main__":
11331133
// Smoothly scroll to the target position
11341134
container.scrollTo({
11351135
top: Math.max(0, Math.min(maxScroll, finalTarget)),
1136-
behavior: 'smooth'
1136+
behavior: 'auto'
11371137
});
11381138
}
11391139
}

0 commit comments

Comments
 (0)