Currently, I am utilizing bootstrap 4.6 for a webpage, and while the default navbar doesn't meet my requirements for mobile navigation, I am attempting to customize it to function like MODE_SCROLLABLE in Android. Therefore, I need it to activate the link when the parent li is centered on the scroll and display the active element at the center.
To provide more clarity, I have included a functional sample (optimized for mobile devices with reduced width, best viewed in Chrome as a mobile device). You can scroll horizontally, but you need to press the link to activate it, and it does not center on the element when the element is active (or pressed).
(To test it, simply use the left and right arrow keys on your keyboard)
... (additional code snippets provided here) ...