File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments