Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Inertia in "ScrollRect" has poor experience (mostly) under android

Discussion in 'UGUI & TextMesh Pro' started by artfabrik, Feb 3, 2019.

  1. artfabrik

    artfabrik

    Joined:
    Jun 6, 2018
    Posts:
    9
    If I do fast swipes to scroll a scrollrect, it is not feeling as well as the native scroll view (on android).
    The velocity estimation should be handled better to calculate the swipe velocity (my guess at least). I really like how androids code base is doing it:

    https://android.googlesource.com/platform/frameworks/native/+/master/libs/input/VelocityTracker.cpp

    They use a second order least squares estimator to estimate the velocity which is obviously working quite well in their scrollviews.

    In general there doesn't seem to be a touch library with good velocity estimation for Unity currently unfortunately (tested/searched Fingers Mobile, Touchscript, Leantouch...
     
    look001 likes this.
  2. look001

    look001

    Joined:
    Mar 23, 2017
    Posts:
    104
    Any updates on this? I also don't like the velocity tracking of unity's ScrollRect. If you found something I would really apprechiate learning about it. I am at a point, where I think about porting the android implementation to unity...