Skip to content

Commit 81108b7

Browse files
committed
Update bottomfloat.js
1 parent e7eea97 commit 81108b7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bottomfloat.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ if (isMobile) {
116116

117117
});
118118

119+
cd.on('focus', () => {
120+
121+
bottomWrapper.classList.add('hidden');
122+
123+
});
124+
119125

120126
// update on screen resize
121127

@@ -168,7 +174,7 @@ function checkBottomFloat() {
168174

169175
}
170176

171-
} else { // if scrolled up
177+
} else if (document.activeElement !== cd) { // if scrolled up
172178

173179
// if passed threshold
174180
if ((lastScrollTop - st) > 20) {

0 commit comments

Comments
 (0)