projects
/
hnim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1447fd9
)
Fix allowing moving past more link invisibly
author
Jacob Casper
<dev@jacobcasper.com>
Thu, 18 Nov 2021 20:25:21 +0000
(14:25 -0600)
committer
Jacob Casper
<dev@jacobcasper.com>
Thu, 18 Nov 2021 20:25:21 +0000
(14:25 -0600)
hnim.js
patch
|
blob
|
blame
|
history
diff --git
a/hnim.js
b/hnim.js
index
890852d
..
ab854f8
100644
(file)
--- a/
hnim.js
+++ b/
hnim.js
@@
-37,7
+37,7
@@
// Curry callback for moving downpage
const changeDownpage = () => {
- elementsIndex = Math.min(elementsIndex + 1, elements.length);
+ elementsIndex = Math.min(elementsIndex + 1, elements.length
- 1
);
changeWithVisibleCallback(elements[elementsIndex], () => {window.scrollTo(0, window.scrollY + selectedElement.offsetHeight)});
}