From c5cca1fac332a02b759b915f0bfc081504fc36e2 Mon Sep 17 00:00:00 2001 From: Jacob Casper Date: Thu, 10 Feb 2022 14:16:03 -0600 Subject: [PATCH] Leave click scrolling up to the browser We have the comment element, so let the browser do the work of fixing our infinite loops. --- hnim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1