Skip to content

Commit 884da3e

Browse files
committed
fix bug (hurry!)
1 parent 362dba3 commit 884da3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webpage/infiniteScroller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class InfiniteScroller {
127127
for (const elm of e) {
128128
const nh = elm.target.getBoundingClientRect().height;
129129
const height = heights.get(elm.target);
130-
if (height) {
130+
if (height && nh) {
131131
root.scrollTop -= height - nh;
132132
}
133133
heights.set(elm.target, nh);

0 commit comments

Comments
 (0)