Search Issue Tracker

By Design

Votes

0

Found in

2018.4

2018.4.24f1

2019.4

2020.1

2020.2

Issue ID

1262342

Regression

No

The Velocity of the scroll rect has been set to the the scroll position has been procedurally set after content resize

uGUI

-

How to reproduce:
1. Open attached project "ScrollRectRepro.zip" and scene "SampleScene"
2. In Hierarchy window, select "Content" object (Canvas -> Scroll View -> Viewport -> Content)
3. Enter Play mode
4. In Game View, on transparent background, click and drag the mouse down
5. In Scene View, observe the expanded "Content" object gizmo size

Expected result: the size of the "Content" is expanded the amount dragged
Actual result: the size of the "Content" is expanded by a lot

Reproducible with: 2018.4.25f1, 2019.4.4f1, 2020.1.0b16, 2020.2.0a18

  1. Resolution Note (2020.2.X):

    Issue is with User Project
    On OnScrollChanged user is calling a Coroutine SimulateDataRequest in which they are generating the random number between 800 to 1000 and UpdateContainerSize so the size of the Content is expanded by a lot

    To fix the user reported issue they should send amount dragged to Coroutine and call UpdateContainerSize accordingly.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.