Skip to content

Commit c27449d

Browse files
committed
Update bottomfloat.js
1 parent 239cda8 commit c27449d

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

bottomfloat.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function checkBottomFloat() {
164164
if (cd.scrollTop >= (cd.scrollHeight - cd.offsetHeight - 1)) {
165165

166166
// set timeout
167-
window.setTimeout(() => {
167+
//window.setTimeout(() => {
168168

169169
// if still on bottom of codeit
170170
if (cd.scrollTop >= (cd.scrollHeight - cd.offsetHeight - 1)) {
@@ -174,19 +174,14 @@ function checkBottomFloat() {
174174

175175
}
176176

177-
}, 400);
177+
//}, 400);
178178

179179
}
180180

181181
} else if (document.activeElement !== cd) { // if scrolled up
182182

183-
// if passed threshold
184-
if ((lastScrollTop - st) > 20) {
185-
186-
// show bottom float
187-
bottomWrapper.classList.remove('hidden');
188-
189-
}
183+
// show bottom float
184+
bottomWrapper.classList.remove('hidden');
190185

191186
}
192187

0 commit comments

Comments
 (0)