Search Issue Tracker
Won't Fix
Votes
1
Found in
2020.3.25f1
2021.2.7f1
2022.1.0b2
2023.1.0a1
2023.2.0a1
Issue ID
UUM-3528
Regression
No
On Value Changed event of Scroll Rect is triggered when parent position changes after scrolling
Reproduction steps:
1. Open the user's attached project "ScrollRectBugReport.zip"
2. Open "SampleScene" from the Project window
3. Enter Play mode
4. Scroll the Scroll View, then stop
5. Observe the Console window
Expected result: "Scroll Value changed\!" is only logged while scrolling in step 4
Actual result: "Scroll Value changed\!" is spammed after step 4
Reproducible with: 2019.4.34f1, 2020.3.25f1, 2021.2.7f1, 2022.1.0b2
Notes:
1. Disabling the "Move" Script on the "ScrollParent" GameObject will stop the Console spam, re-enabling the Script will start it again
2. On 2019.4.34f1 and 2020.3.25f1 scrolling to the bottom is necessary to reproduce
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
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Resolution Note:
We are limited in how much we can fix on uGUI given the priority shift to UI Toolkit. Can you try the workarounds below?
This might be the fix. We are currently m_Content.anchoredPosition != m_PrevPosition which will be modified based on the parent. instead do
if (m_ViewBounds != m_PrevViewBounds || m_ContentBounds != m_PrevContentBounds || (Vector2)m_Content.localPosition != m_PrevPosition)
If that doesnt work try SetContentAnchoredPosition(position); and invoke