I'm currently developing a website at and have implemented a JavaScript feature to highlight the current menu item with an arrow.
The issue I'm facing is that when users scroll through the page using the scrollbar instead of clicking on the menu items, the arrow indicating the current menu item doesn't move accordingly. How can I address this problem?
Thank you, Frida