Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Restyled by prettier
  • Loading branch information
restyled-commits committed Sep 22, 2024
commit aa1d0d0ef0677eae2bb2a632e2867c601e31f735
3 changes: 2 additions & 1 deletion src/components/Buttons/bottom/ScrollTopToButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export default function ScrollTopToBottom() {
};

const handleScroll = () => {
const bottomThreshold = document.documentElement.scrollHeight - window.innerHeight - 100;
const bottomThreshold =
document.documentElement.scrollHeight - window.innerHeight - 100;
if (window.scrollY < bottomThreshold) {
setShowButton(true);
} else {
Expand Down
Loading