Skip to content

Commit

Permalink
Merge pull request #92 from craigatk/fix-scroll
Browse files Browse the repository at this point in the history
(fix) Don't scroll every time system output line is clicked
  • Loading branch information
craigatk authored May 14, 2020
2 parents 6b37b19 + c37156e commit 18aab93
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 18aab93

Please sign in to comment.