I'm currently working on a Whatsapp-style navigation bar and facing an issue with the sticky navbar functionality.
https://i.stack.imgur.com/Cy3lA.gif
Please refer to the details below for more information.
To resolve this issue, I have included a function that checks the height of each section within the container. If the content height exceeds a certain threshold, the scrollbar will be enabled. This ensures that only sections with lengthy text display the scrollbar while maintaining the sticky behavior of the navbar.
Furthermore, to address this challenge in the presence of page transitions, I have implemented additional logic to dynamically manage the scrolling behavior based on the active page index.
If you encounter any issues, please let me know.