Skip to content

fix: hide scroll arrow at bottom issue #815#816

Open
khalidkhankakar wants to merge 2 commits intoOWASP:mainfrom
khalidkhankakar:fix/hide-scroll-arrow-bottom
Open

fix: hide scroll arrow at bottom issue #815#816
khalidkhankakar wants to merge 2 commits intoOWASP:mainfrom
khalidkhankakar:fix/hide-scroll-arrow-bottom

Conversation

@khalidkhankakar
Copy link

@khalidkhankakar khalidkhankakar commented Mar 18, 2026

🐛 Fix: Hide scroll arrow at bottom of page

📌 Description

This PR fixes the issue where the scroll-down arrow button remained visible even after reaching the bottom of the page.


✅ Changes Made

1. Improved Scroll Detection

  • Replaced footer-based visibility logic with scroll position detection
  • Added threshold to prevent flickering at the bottom

2. Simplified Logic

  • Removed MutationObserver
  • Unified logic for:
    • scroll position
    • mobile menu state

Behavior

Top of Screen
image

Bottom of Screen when footer is visible in viewport
image

resloves issue #815

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant