Skip to content

Commit

Permalink
fix(#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
jannis-baum committed Jan 22, 2025
1 parent 040995c commit 4afd46e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/client.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ ws.addEventListener('message', async (event) => {
}
line -= 1;
}
// no element above scroll line found, i.e. scroll to top
if (!line) window.scrollTo({ top: 0, behavior: 'smooth' });
break;

case 'RELOAD':
Expand Down

0 comments on commit 4afd46e

Please sign in to comment.