Skip to content

Commit

Permalink
Remove timeOut and smooth behavior on scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
RodriSanchez1 committed Mar 13, 2023
1 parent 99c07d8 commit 3a681ad
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/Board/Output/SymbolOutput/SymbolOutput.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,15 @@ class SymbolOutput extends PureComponent {
try {
const lastOutputSymbol = this.scrollContainerRef.current.lastElementChild;
lastOutputSymbol.scrollIntoView({
behavior: 'smooth',
inline: 'start'
inline: 'end'
});
} catch (err) {
console.error('Error during autoScroll of output bar', err);
}
};

componentDidMount() {
//using a setTimeout to propperly works of scroll in to view depending of screen size render
setTimeout(this.scrollToLastSymbol, 200);
this.scrollToLastSymbol();
}

componentDidUpdate(prevProps) {
Expand Down

0 comments on commit 3a681ad

Please sign in to comment.