We have a vegaOS app using the webview component. The html5/javascript code in the web app is common code used in our app on other platforms
The app has a top menu bar
element as a scrollable container for individual
menu elements.
This works as expected and the elements scroll correctly inside the container to show any menu elements that overflow the main container.
However, when the outer container
has the ‘scroll-behavior: smooth;’ style property set, the elements no longer scroll and any menu elements which overflow the container become inaccessible.
I suspect that this might be a bug in the ‘scroll-behavior’ style, or possibly it is not supported, or it is not functional due to smooth scrolling being disabled or only partially supported on the OS.
I’ve also noticed that this only impacts the app when running on actual hardware, I have confirmed that ‘scroll-behavior: smooth;’ works as expected in the simulator.
Just following up on my previous message - could you share the minimal code snippet and confirm how scrolling is triggered (D-Pad or programmatically)?
Apologies, I didn’t see the request for a code sample on your original post.
I’ve spent some time reproducing this issue with a minimal code sample, and in the process I have identified the root cause in our core code which was only being exposed on this device due to a unique set of conditions. An erroneous and transient ‘scroll-snap-type’ style was interfering with the ‘scroll-behavior: smooth’ style. Removing the transient ‘scroll-snap-type’ style has resolved the problem.