Skip to content

Commit

Permalink
scroll into chart view in script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel Gonzalez committed Jan 5, 2024
1 parent ea3bad7 commit 580ca1b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ function runSimulations() {
}
});

// Scroll to the bottom of the page
window.scrollTo({
top: document.body.scrollHeight,
// Scroll to the chart element
resultElement.scrollIntoView({
behavior: 'smooth'
});
}
Expand Down

0 comments on commit 580ca1b

Please sign in to comment.