iOS Question ScrollView offset

Discussion in 'iOS Questions' started by Semen Matusovskiy, May 22, 2019.

  1. Semen Matusovskiy

    Semen Matusovskiy Well-Known Member Licensed User

    Hi, guys --

    Android limits offsetY according Panel.Height. But IOS allows to scroll more. During scroll movement OffsetY can be more than Scrollview.Panel.Height - ScrollView.Height)
    In some conditions (for example, "unlimited" list) similar feature is interesting. But if the list is limited, there is no reason to allow OffsetY > Panel.Height - ScrollView.Height

    I tried to process Scrollview_ScrollChanged events.
    Code:
    If (OffsetY + scrollViewBody.Height) > scrollViewBody.Panel.Height Then scrollViewBody.ScrollTo (0, scrollViewBody.Panel.Height - scrollViewBody.Height, False)
    ContentHeight = Panel.Height.
    This works, but looks irrational. Probably there is a special property ?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Yes.
    Code:
    sv.Bounces = False
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice