Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

ScrollRect swipe not smooth on Android

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

  1. areavisuale


    Jul 23, 2015
    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


    Jan 22, 2013
    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.