Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Nominations have been announced for this years Unity Awards. Celebrate the wonderful projects made by your peers this year and get voting! Vote here!
    Dismiss Notice
  6. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

ScrollRect swipe not smooth on Android

Discussion in 'Unity UI & TextMesh Pro' started by areavisuale, Jun 1, 2018.

  1. areavisuale

    areavisuale

    Joined:
    Jul 23, 2015
    Posts:
    26
    I'm trying to figure out why when I try a vertical scroll panel on Editor works great and when I try it on Android devices I encounter this behavior:

    I have a long panel to scroll, so I swipe my fingers multiple times to go to the bottom. On Android devices everytime my finger touch the screen the scroll is interrupted and it restarts to scroll when i swipe. I havent' tested on iOS but in Editor works correctly, and I see a smooth transition.

    It seems a problem with the dragthreshold, but I tried to lower it without results. Seems that the phone understand my swipe as "tap"...

    This is the problem in a video: (my Unity App)



    And this is the behavior that I wanted:



    It's not a performance problem, the app runs at 60fps also when I scroll.
    My Hierarchy consists in:

    Scroll View
    - Elastic - Elasticity 0.1, Inertia ON, Deceleration 0.2, Scroll Sensitivity 5
    - Components: RectTransform, Scroll Rect, Rect Mask 2D

    -> ContentPanel
    Components: RectTransform (pivot 0.5,1), Content Size Fitter (Unconstrained, Min Size), Vertical Layout Group (Child force expand Height)

    ->-> Various Texts
    Components: RectTransform (pivot 0.5,1), Text, (Unconstrained, Preferred Size).


    Nobody with an idea?
     
  2. nindim

    nindim

    Joined:
    Jan 22, 2013
    Posts:
    73
    I am also struggling with the feel of scroll rects on Android (may also be problematic in iOS but haven't been able to test yet).

    I'm not sure if your issue is similar as your videos are no longer available.

    For mem fast swipes don't seem to get registered properly so it's difficult to scroll large lists quickly. Seems to work fine in the editor. My frame rate is 60 as well, so it must be something to do with the touch data versus the mouse data.