Closed channiboi1998 closed 3 months ago
Hi @channiboi1998, thank you for your feedback!
Please read this (#10) issue to learn how you should use the parameters related to intersectionObserver
.
You should understand and learn how to configure root
, rootMargin
and threshold
parameters.
Please be sure to report back whether or not your problem has been solved.
Hi @toviszsolt, did not expect a fast reply. In my case it turns out that I just have to assign the section ids on the right element. My bad. Thank you for responding!
@channiboi1998
I'm glad that your problem has been solved.
If you found this project interesting, please consider supporting my open source work by sponsoring me on GitHub / sponsoring me on PayPal / give the repo a star.
Description: There is an issue with the scroll spy functionality where the second last link in the sticky navigation is always highlighted instead of the last link when the page is scrolled to its maximum extent. This occurs because the last section does not reach the y-axis position required to trigger its activation, leaving the second last link highlighted instead.
Steps to Reproduce:
Expected Behavior: The last navigation link should be highlighted when the page is scrolled to its maximum extent, ensuring consistent and accurate navigation feedback for the user.
Actual Behavior: The second last navigation link remains highlighted when the page is scrolled to the bottom, despite the last section being in view.
Possible Solution: Adjust the scroll spy logic to account for scenarios where the page is scrolled to its maximum extent, ensuring the last section's navigation link is activated accordingly.