Search Unity

Bug: Scrollview allows both horizontal and vertical drag regardless of setting. Clamped also broken

Discussion in 'UI Toolkit' started by mikejm_, Dec 27, 2021.

  1. mikejm_

    mikejm_

    Joined:
    Oct 9, 2021
    Posts:
    346
    The current scrollview when dragged by finger on mobile screen or touchscreen in Editor can be pulled both horizontally and vertically regardless of the settings. Even if you only have it set to vertical scroll, you can still pull the content to the side (and then upon release it goes back to neutral position). This emulates "elastic" function with both horizontal and vertical motion allowed.

    The "clamped" setting also does nothing as you can still pull the content past its usual limits (elastic function) when set to clamped.

    So two bugs:

    1) If you only have vertical scrolling enabled, the content of that scroll view should only be able to move in a vertical fashion when you are dragging by finger.

    2) Clamped mode should prevent motion past the usual limit of the content.

    Any solutions? I am sure you are very busy with all the things you must be building. But these are fundamental scrollview functions and scrollviews are pretty important/fundamental elements.

    Thanks for any help.
     
    Issus94 likes this.