projects
/
hnim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release 0.7
[hnim.git]
/
hnim.js
diff --git
a/hnim.js
b/hnim.js
index
3910014
..
aab3bc0
100644
(file)
--- a/
hnim.js
+++ b/
hnim.js
@@
-15,7
+15,7
@@
const visible = (element) => {
let bounds = element.getBoundingClientRect();
const visible = (element) => {
let bounds = element.getBoundingClientRect();
- return bounds.top >= 0 && bounds.bottom <= window.innerHeight;
+ return
Math.abs(bounds.bottom - bounds.top) > window.innerHeight ||
bounds.top >= 0 && bounds.bottom <= window.innerHeight;
}
const changeWithVisibleCallback = (comment, callback) => {
}
const changeWithVisibleCallback = (comment, callback) => {