Skip to content

Commit

Permalink
Merge pull request #200 from jannis-baum/issue/199-bug-cursor-does-no…
Browse files Browse the repository at this point in the history
…t-follow-if-inside-tags-section
  • Loading branch information
jannis-baum authored Jan 22, 2025
2 parents 040995c + 4afd46e commit ef959f6
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 ef959f6

Please sign in to comment.