Skip to content

Commit 964a1d5

Browse files
authored
Update bottomfloat.js
1 parent 7bf18f0 commit 964a1d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bottomfloat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function checkBottomFloat() {
118118
window.setTimeout(() => {
119119

120120
// if still on bottom of codeit
121-
if ((st + cd.offsetHeight) >= cd.scrollHeight) {
121+
if ((cd.scrollTop + cd.offsetHeight) >= cd.scrollHeight) {
122122

123123
// show bottom float
124124
bottomFloat.classList.remove('hidden');

0 commit comments

Comments
 (0)