Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copy of Header.js from beacon scroll fix #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jtherrien-accuraty
Copy link
Contributor

Not sure if these changes should be pulled into this project or not...

Finished fixing the scroll bug on beacon where if the page size was under a certain level the scroll wouldn't work as the code was stuck in a loop of removing the header shortening the scroll bar, shortened enough to where the current position becomes the bottom of the page and still be pushed up in scroll position, and this triggering a scroll up event.

This is all tied to the menu toggling whether the header should be position relative or fixed, so when they scroll up the header appears. This logic is handled by the fixed-top class being toggled based on having scrolled over X amount away from the top. This doesn't look to be really used by the existing Header.js in this project though so not sure if this fix is unique to beacon or if it needed to be pulled into AccuTheme as well.

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