We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c59167 + aa1d0d0 commit e0ec97bCopy full SHA for e0ec97b
src/components/Buttons/bottom/ScrollTopToButton.jsx
@@ -13,7 +13,8 @@ export default function ScrollTopToBottom() {
13
};
14
15
const handleScroll = () => {
16
- const bottomThreshold = document.documentElement.scrollHeight - window.innerHeight - 100;
+ const bottomThreshold =
17
+ document.documentElement.scrollHeight - window.innerHeight - 100;
18
if (window.scrollY < bottomThreshold) {
19
setShowButton(true);
20
} else {
0 commit comments