From: Jacob Casper Date: Thu, 18 Nov 2021 18:36:52 +0000 (-0600) Subject: Fix home page navigation not working X-Git-Tag: v0.4~1 X-Git-Url: https://git.jacobcasper.com/?a=commitdiff_plain;h=93b766f9a4c9db36f1c899cc02c4caa24af995dc;p=hnim.git Fix home page navigation not working comment selection are not counted and so scrolling could run off the end of the home page and require using a mouse. --- diff --git a/hnim.js b/hnim.js index 593d56c..890852d 100644 --- a/hnim.js +++ b/hnim.js @@ -25,7 +25,7 @@ selectedElement.style.outline = ''; selectedElement = comment; selectedElement.style.outline = '1px dashed black'; - if (!visible(comment)) { + while (!visible(comment)) { callback(); } }