On my smartphone (android), I open up my unity application and I can scroll both horizontally and vertically in ScrollViews, even though I set the scroll mode of the scroll view to vertical only.
Neither the default option:
, nor setting it myself:
works. It always allows me to scroll horizontally on my phone.
Also the touch scroll type is always reset to the following state automatically, now matter what I do:
This happens in the editor window, but the uxml file still has the correct value.
I’ve had this issue too. Weird thing is that I have another scrollview else where that is behaving properly, mode set to horizontal and scrolling only horizontally.
I’ve compared all the values between both scrollviews and they are exactly the same but one of them can scroll horizontal and vertical even though mode is set to horizontal.
Ended up copying the scrollview that behaves over to replace and it works now. Really buggy and finicky, I suggest trying to make a new scrollview and trying again?
I have a similar issue on Windows Touch Monitors:
I have several scroll views that are working correct, but there is one which is set to “Vertical” where i can touch-Scroll horizontal. But only about 20px. But that is even when there is no styles set to the scrollview at all, so copying from a working scroll should make no difference.
I was having this exact same issue, I know this is a old thread but incase anyone runs into it dealing with this issue I was able to resolve it by setting the content in #unity-content-container to have 99% width. stopped the wierd wiggle that was happening