X-Git-Url: https://git.jacobcasper.com/?p=hnim.git;a=blobdiff_plain;f=hnim.js;fp=hnim.js;h=1e804b37762f0f57bdf47f24ac2c6bad3d897421;hp=7ac3f5d9ee704cdbee50f6829def5178fb51eb23;hb=c5cca1fac332a02b759b915f0bfc081504fc36e2;hpb=e10798def56ccc77315816ca54e32e623cf49dd5 diff --git a/hnim.js b/hnim.js index 7ac3f5d..1e804b3 100644 --- a/hnim.js +++ b/hnim.js @@ -32,7 +32,7 @@ const change = (comment) => { elementsIndex = elements.indexOf(comment); - changeWithVisibleCallback(comment, () => {}); + changeWithVisibleCallback(comment, () => {comment.scrollIntoView()}); } // Curry callback for moving downpage