Search Issue Tracker
Fixed in 1.0.0
Votes
0
Found in [Package]
1.0.0
Issue ID
1193571
Regression
Yes
[New Input System] Tapping the Scroll Bar makes it jump to the bottom, not the selection
Reproduction steps:
1. Open "1193571" project
2. Enter Play mode
3. Tap in the middle of the Scroll Bar
Expected Result: The Scroll bar jumps to the selection
Actual Result: The Scroll Bar jumps to the bottom
Reproduced with: 2020.1.0a9, 2019.3.0b8, 2019.2.10f1, 2018.4.12f1
Did not reproduce on: 2017.4.33f1 (No Packman)
-
cxode
Jun 08, 2020 10:44
Please note that this fix requires an update to the Unity editor as well, not just the package. More details on the forum thread: https://forum.unity.com/threads/new-input-system-and-scroll-rect-bug-when-clicking-on-scrollbar.840868/#post-5952230
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Prefab override popup is cropped/positioned incorrectly when more than one display is used and a higher display Scale is set
- Opening a dropdown on a small screen results in its instant closing when mouse cursor is pressed where the dropdown is going to be opened
- Only "ArgumentNullException: Value cannot be null" is displayed instead of all the actual errors when opening a project with numerous compilation errors
- MultiColumnListView and MultiColumnTreeView do not change selection on first input when focus is set by code
- SerializedProperty.DataEquals is returning false when SerializedProperty.EqualContents return true
Resolution Note (fix version 1.0.0):
Fix issue with Scrollbar::ClickRepeat that was using the same PointEventData over multiple frames. This is a issue in the new input system as it uses a single PointerEventData for every point modifying data where necessary where the old system has a PointerEventData for each pointer.
Modifying the code such that it uses the same data from the PointerEventData each frame instead of the PointerEventData itself solves the issue. I see no reason why the 2 points of data pointerPressRaycast.screenPosition and eventData.enterEventCamera would ever need to be changed between the frames where the pointer is down.