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

hugo: Fix header not being hidden when scrolling to anchor. #476

Closed

Conversation

JorindeUsMedia
Copy link
Collaborator

@JorindeUsMedia JorindeUsMedia commented Nov 1, 2024

  • Fix js error on the tabs-nav widget which caused the javascript to fail when only 1 tab was present (console error about undefined tabslist)
  • Fix check on scrolldown: when scroll Y old is equal to scroll y new it should not assume it's scrolling up again.
    If a scroll-to-anchor was triggered twice (what happened here for some
    reason) it wrongly set scrolLDown to false while the old-Y & new-Y position
    were the same.

To test:
Go to /docs/concept/modules-packages-instances/#instances You should scroll down to the anchor and the header should be hidden.

Closes cue-lang/cue#3058

Copy link

netlify bot commented Nov 1, 2024

Deploy Preview for cue ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit c74afd3
🔍 Latest deploy log https://app.netlify.com/sites/cue/deploys/6724f4b64eb0e800081f7104
😎 Deploy Preview https://deploy-preview-476--cue.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@jpluscplusm jpluscplusm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Importing now.

@jpluscplusm
Copy link
Collaborator

@JorindeUsMedia This issue, mentioned in the commit message, seems somewhat tangential. Are you sure that's the right issue, and not cue-lang/cue#3058?

Closes cue-lang/cue#2971

- Fix js error on the tabs-nav widget which caused the javascript to fail
when only 1 tab was present (console error about undefined tabslist)
- Fix check on scrolldown: when scroll Y old is equal to scroll y new it
should not assume it's scrolling up again.
 If a scroll-to-anchor was triggered twice (what happened here for some
 reason) it wrongly set scrolLDown to false while the old-Y & new-Y position
 were the same.

To test:
Go to /docs/concept/modules-packages-instances/#instances
You should scroll down to the anchor and the header should be hidden.

Closes cue-lang/cue#3058

Signed-off-by: Jorinde Reijnierse <[email protected]>
@JorindeUsMedia
Copy link
Collaborator Author

JorindeUsMedia commented Nov 1, 2024

@JorindeUsMedia This issue, mentioned in the commit message, seems somewhat tangential. Are you sure that's the right issue, and not cue-lang/cue#3058?

Closes cue-lang/cue#2971

@jpluscplusm ah you're right.. mixed up the issues by updating the commits/prs. Updated the commit message

@jpluscplusm
Copy link
Collaborator

jpluscplusm commented Nov 1, 2024

Imported as https://cuelang.org/cl/1203463

@cueckoo cueckoo closed this in f0e0f0f Nov 1, 2024
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.

cuelang.org: visiting an anchor/section should hide the floating header
2 participants