Skip to content

Commit

Permalink
(fix) Don't scroll every time system output line is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
craigatk committed May 14, 2020
1 parent 6b37b19 commit c37156e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/CodeText/CodeText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const CodeText = ({ text }: CodeTextProps) => {
}, [setHighlightedLine]);

const renderComplete = () => {
if (highlightedLine != null && rendered) {
if (highlightedLine != null && !rendered) {
scroller.scrollTo(`line-${highlightedLine}-true`, {
duration: 0,
delay: 0,
Expand Down

0 comments on commit c37156e

Please sign in to comment.