Skip to content

Conversation

@MoritzWeber0
Copy link
Member

Instead of detecting the current heading or position by observing the currently visible elements, detect the current scroll position and calculate the currently active heading from it. In my experiments, this is more reliable than the previous approach, mostly due to exact pixel matching.

@netlify
Copy link

netlify bot commented Sep 9, 2025

Deploy Preview for fipguide ready!

Name Link
🔨 Latest commit b6991a5
🔍 Latest deploy log https://app.netlify.com/projects/fipguide/deploys/68c121623cf18900084eda6f
😎 Deploy Preview https://deploy-preview-302--fipguide.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 project configuration.

@MoritzWeber0 MoritzWeber0 force-pushed the fix/scrollport-detection branch from add3b8e to b6991a5 Compare September 10, 2025 06:57
@MoritzWeber0 MoritzWeber0 changed the title fix: Replace hightlight logic from intersector to scroll detection fix: Change highlight logic from intersector to scroll detection Sep 10, 2025
@lenderom lenderom merged commit 3d1245c into main Sep 12, 2025
7 checks passed
@lenderom lenderom deleted the fix/scrollport-detection branch September 12, 2025 13:08
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.

3 participants