It seems that when using the new Input System UI Input Module component, clicking on a Scrollbar inside a ScrollRect instantly scrolls all the way to the bottom.
Some observations:
I’m on 2019.3.2f1 and preview-05.
When I disable the InputSystemUIInputModule and enable StandaloneInputModule the bug no longer presents.
The instant-scroll happens whether I click the Handle or anywhere inside the Scrollbar area.
If I keep the mouse button held down and then drag - it fixes itself and I can scroll the Handle perfectly.
This happens regardless of content inside the ScrollRect.
After a QA pass, turns out there’s still issues with scrollbars even with the recent batch of fixes to UI so there’s likely still going to be some problems with preview.6. I promise we’ll have a look for the package after that.
Oh ok, thanks for the update! Since the primary input method is a controller, and the mouse does work when dragging the content and using the mouse wheel - it’s not really that big of an issue.
In my case, ScrollView/ScrollRect is not useable because of this issue. Stuff just jumps around too much when clicking on the scroll bar. Looking forward to a fix. Thank you.
This turned out to be a problem in the uGUI scrollbar code where it retains an event object (which are cached and thus reused) and runs a coroutine on it over several frames. uGUI team is handling it from here. I expect there will be a fix in an upcoming uGUI package.
Not to thread hijack, but using the new Input System (and the old one too for that matter) scroll rects have never worked with gamepads or keyboard for me without extra code. Am I just mapping the controls wrong? Or missing something else? Are these supposed to work with gamepads out of the box?
EDIT: I should have pointed out that even using the below code has some problems:
I can’t easily get a gamepad or keyboard to select Selectables listed in the scroll rect unless i select one with the mouse first.
I’m using the right stick to scroll, and I’m not sure why but the right stick input (at least on Dualshock 4 & Xbox One) is also selecting the next item in that direction, probably via the “Navigation” settings on the selectables.
Ideally selecting a selectable on a scroll rect would cause it to scroll to a position such that the entire selectable is visible. it doesn’t scroll at all based on contents being selected.
In order to get scroll rects to scroll around with a controller I’ve been adding this class:
Hi…
Was the fixed ever deployed? reading the ticket they seem to mention fixed in UGUI 1.0.0, I have that version with 2019.3.13 and still have the same issue.
Would be great to get a dev response on this ( @Rene-Damm ?). I’m on the latest version of the package and still experiencing the issue. If this isn’t fixed before our game comes out I’ll have to make my own scrollbar to replace the built-in scrollbars, and that would be silly.
Thank you very much! That fixed it. I left a comment on the issue tracker page to let others know they need to update the Unity editor. In the future it would be much appreciated if you note when an editor update is required. That wasn’t clear at all from the issue tracker page, which only stated a package version in which the issue was fixed.
Hi. I found the same behavior on 2019.3.14.f1, but with XR Interaction Toolkit, but upgrading Unity version did not help. Is there any other way to fix this?
I’m seeing that same issue, even in the unity example project with 2019.4.11f1.
Upgrading unity to 2020 seems to fix the issue. The fix might be in a later version of 2019 but didn’t try them.