|
Post by stefan on Mar 22, 2022 12:00:18 GMT
Hi,
We have a list (that can be filtered) with a lot of items - multiple thousand in some cases. It it working fine performance wise and when filtering it (and hence less items), all is working fine. When showing the full list, it is not using inertia anymore though. The physical effect is gone and when letting go of the finger or the mouse, it immediately stops. The inertia is enabled, set to the default value of 0.135 and no snapping is enabled. After going through it a bit with the debugger, it seems this is caused by the Unit UI scrollbar code setting the velocity to 0, maybe because of rounding issues. I've added a workaround to remove the scrollbar reference from the ScrollRect if GetScrollPositionForDataIndex is too large (e.g. > 250000), but it would be nice if this could be handled internally by enhanced scroller.
|
|
|
Post by echo17 on Mar 22, 2022 16:17:20 GMT
The scrollrect, inertia, and scrollbars are all Unity components and calculations that are closed source. I would suggest submitting a bug report to the Unity development team as they would be the ones to handle the fix for this.
|
|