Leave click scrolling up to the browser
[hnim.git] / hnim.js
diff --git a/hnim.js b/hnim.js
index 7ac3f5d..1e804b3 100644 (file)
--- a/hnim.js
+++ b/hnim.js
@@ -32,7 +32,7 @@
 
   const change = (comment) => {
     elementsIndex = elements.indexOf(comment);
 
   const change = (comment) => {
     elementsIndex = elements.indexOf(comment);
-    changeWithVisibleCallback(comment, () => {});
+    changeWithVisibleCallback(comment, () => {comment.scrollIntoView()});
   }
 
   // Curry callback for moving downpage
   }
 
   // Curry callback for moving downpage