Fixed positioning does not work
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 642
- PR merge metrics
- No merged PRs in 30d
Description
Hi jakiestfu,
Firstly, great plugin.
However, I am trying to fix the toggle button to the top of the page so it behaves like a sticky header and follows the user as they scroll down the page.
When I add position:fixed to the element it does not position at the top of the page, but even worse is that the anchor tag becomes unclickable. I thought I could solve this with z-index but no luck. I think it might have something to do with overflow:auto on the content.
Please help - as this is a deal breaker.
Thanks.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the fixed-position toggle-button behavior while scrolling, including the reported overflow:auto context. Inspect Snap.js's positioning and overflow handling, then verify that the toggle remains at the top of the page and its anchor remains clickable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100