Skip to content

Commit 3f19810

Browse files
committed
feat: cleanup
1 parent 18080f1 commit 3f19810

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/components/ui/floating-action-button.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ interface FloatingActionButtonProps {
88

99
export function FloatingActionButton({ onClick, visible = true }: FloatingActionButtonProps) {
1010
const [isVisible, setIsVisible] = useState(visible);
11-
const [isScrollingUp, setIsScrollingUp] = useState(false);
1211
const [lastScrollY, setLastScrollY] = useState(0);
1312

1413
useEffect(() => {
1514
const handleScroll = () => {
1615
const currentScrollY = window.scrollY;
1716
// Determine if scrolling up
1817
const isScrollUp = currentScrollY < lastScrollY;
19-
setIsScrollingUp(isScrollUp);
2018

2119
// Update the last scroll position
2220
setLastScrollY(currentScrollY);

0 commit comments

Comments
 (0)