projects
/
hnim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e10798d
)
Leave click scrolling up to the browser
author
Jacob Casper
<dev@jacobcasper.com>
Thu, 10 Feb 2022 20:16:03 +0000
(14:16 -0600)
committer
Jacob Casper
<dev@jacobcasper.com>
Thu, 10 Feb 2022 20:16:03 +0000
(14:16 -0600)
We have the comment element, so let the browser do the work of fixing
our infinite loops.
hnim.js
patch
|
blob
|
blame
|
history
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);
- changeWithVisibleCallback(comment, () => {});
+ changeWithVisibleCallback(comment, () => {
comment.scrollIntoView()
});
}
// Curry callback for moving downpage