Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
2
Question by kris_arn · Aug 10, 2016 at 12:55 AM · uiscrollview

UI ScrollRect inertia does not work between 35-50%

I've spent the last few hours optimising an image search results screen within my companies app and have encountered bug with Unity's ScrollRect component.

Steps to reproduce:

  • Create a vertical scroll view with a content area 6000 or taller

  • Turn on inertia

  • Start the app/game

  • Scroll to 35% of the content at which point inertia stops working

  • Once you reach 50% inertia starts working correctly again

The greater the height of the content panel and/or larger deceleration rate the more noticeable it is.

This happens when running within the editor and on my Android phone (haven't had a chance to test on iOS yet).

I'm using Unity 5.4 but this was also happening with a previous 5.3 build.

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image kris_arn · Aug 09, 2016 at 06:11 PM 0
Share

One additional thing I've just noticed, when the scroll view first reaches 35% of the content the following error appears a few seconds later in the debug console:

IsFinite (m_CachedRange.first) && IsFinite (m_CachedRange.second)

I spotted this error a few days ago and didn't know what was causing it - I found a thread on this forum suggesting it is an issue with custom animations but this is being caused by the above issue.

avatar image Owen-Reynolds · Aug 10, 2016 at 01:02 AM 0
Share

This might be a question, so I sent it through, but there's an official Unity bug reporter that maybe is where you really want to send this?

avatar image kris_arn · Aug 10, 2016 at 07:52 PM 0
Share

Thanks Owen, I did actually want to report this as an issue but I couldn't see any way to post it to the issue tracker from this website.

I feel really stupid, just found the "Report a Bug..." dialog in the editor. doh!

6 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by pineda100 · Feb 16, 2017 at 04:30 PM

Same issue is observed.

Here's a pastebin of a script i wrote to manually use scrollbars.

http://pastebin.com/bEeBeh5j

Note that the issue is not observed when scrollbars are not assigned to scrollrect. This is a Script to workaround the issue temporarily, by not assigning the scrollbar to the scroll rect, But to update the scrollbar functionality manually.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image bluksPL · Mar 01, 2017 at 11:06 AM 0
Share

Fixed my issue and work perfect.

avatar image BjoUnity3d bluksPL · Feb 21, 2018 at 06:16 PM 0
Share

@pineda100 Oh wow thank you so much! It worked perfectly. I was so sad, I have this page of over a thousand names so the scrollbars are necessary. The Unity scroller just has no inertia for the top 15% of the page on my Google Pixel 2. I used your fix and now the inertia is back! And this is 2017.3 so the bug is still there.

avatar image
2

Answer by r2digi · Sep 06, 2016 at 08:11 PM

i think there's a bug with the scrollbars. for us we removed the scrollbars and the scrolling is smooth again.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image thrif_ash · Sep 08, 2016 at 02:21 AM 0
Share

I've been having the same issue and removing the scrollbars worked for me as well.

avatar image
1

Answer by thrif_ash · Jan 15, 2017 at 05:58 PM

Just tried in 5.5 and it still seems broken.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by reddtoric · Dec 08, 2017 at 05:42 AM

Issue still exists in version 2017.2.0f3. Taking scroll bar off works.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by JanusAnderson · Oct 01, 2016 at 07:15 PM

Has anyone found a workaround for this that doesn't involve getting rid of the scrollbar? This does indeed solve the problem but I need scrollbars in my game. I haven't been able to update Unity since 5.3.5 because of this bug being introduced and I can't figure out a way to solve it.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image r2digi · Oct 01, 2016 at 07:21 PM 0
Share

i'd just try rolling your own scroll bar. shouldn't be that hard.

avatar image thrif_ash · Oct 19, 2016 at 04:09 AM 0
Share

I ended up rolling back to 5.3.2f1 and I haven't had any issues. This will work for my current project but I'd like to use the latest for my next one hopefully they fix it.

avatar image JanusAnderson · Oct 28, 2016 at 11:37 PM 0
Share

I actually built a example project and sent it in with a bug report. They responded that they knew about the bug and it 'was fixed' but didn't know when the fix would be released :/

I just downloaded 5.4.2p2 and still no fix... back to 5.3.5 I guess.

  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

12 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Control ScrollView with arrow keys? 3 Answers

OnpointerClick not working(parents gameObject has EventTrigger) 0 Answers

NGUI 2.7 clipping with the new UI? 0 Answers

UGUI: Buttons on scrollview don't always register touches 1 Answer

How to use unity ui of old version in unity new version 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges