diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/views/game/finish_activity.js.erb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/game/finish_activity.js.erb b/app/views/game/finish_activity.js.erb index 99d200c..0732600 100644 --- a/app/views/game/finish_activity.js.erb +++ b/app/views/game/finish_activity.js.erb @@ -5,6 +5,9 @@ var outputHTML = "<%= j render(partial: "activities/results", locals: { results: if (resultOutputDiv) { resultOutputDiv.innerHTML += outputHTML; + resultOutputDiv.scrollTo({ + top: resultOutputDiv.scrollHeight, left: 0, behavior: 'smooth' + }); } if (resultControlsDiv) { |