ScrollView Question.

      Hi, I had been using the widget.newScrollView and was wondering if there is any way to stop the pull motion once the end of the images in scrollView is at the end of the screen. So like if the x position (x since the scrollview is moving horizontal) is 0 and I try and look to the left of it I will see a white screen, and the results I want is for the screen to not scroll at all so the user doesn’t see the white screen .

Thanks in advance.

-Caine Barber 

Just to make sure I understand the question, you want to prevent the spring effect of pulling the scroll view past where it’s end edge meets that side of the screen?

I want to prevent the spring effect of pulling the scroll view past where it’s end edge meets that side of the screen.

How can I make …?

Just to make sure I understand the question, you want to prevent the spring effect of pulling the scroll view past where it’s end edge meets that side of the screen?

Hi @hannyong,

At this time it’s not possible, but we’re hoping to add this as a feature in the near future.

Thanks,

Brent

I want to prevent the spring effect of pulling the scroll view past where it’s end edge meets that side of the screen.

How can I make …?

Hi @hannyong,

At this time it’s not possible, but we’re hoping to add this as a feature in the near future.

Thanks,

Brent

Caine, How did you implement images in horizonatl scrollview?  Would you mind sharing that bit of code?  I am a bit stumped on how to do it, as haven’t had success yet.

He could use object:setIsLocked() to achieve this right?

BTW, that API is not in the scrollview docs yet although the page says it was updated yesterday. Heads up. 

Hi Kerem,

Yes, this is a valid function now (but only since the daily build in which it was added). It will be added to the daily build docs soon.

Brent

Super. Since the question came from a Pro user I thought it is relevant. In the meanwhile all starters can continue to rely on 

scrollView._view._isVerticalScrollingDisabled = true

and/or

scrollView._view._isHorizontalScrollingDisabled = true

Indeed Kerem, thanks for posting the “below the hood” method for Starter users. This can be used until “setIsLocked()” becomes available in a public release.

Brent

Caine, How did you implement images in horizonatl scrollview?  Would you mind sharing that bit of code?  I am a bit stumped on how to do it, as haven’t had success yet.

He could use object:setIsLocked() to achieve this right?

BTW, that API is not in the scrollview docs yet although the page says it was updated yesterday. Heads up. 

Hi Kerem,

Yes, this is a valid function now (but only since the daily build in which it was added). It will be added to the daily build docs soon.

Brent

Super. Since the question came from a Pro user I thought it is relevant. In the meanwhile all starters can continue to rely on 

scrollView._view._isVerticalScrollingDisabled = true

and/or

scrollView._view._isHorizontalScrollingDisabled = true

Indeed Kerem, thanks for posting the “below the hood” method for Starter users. This can be used until “setIsLocked()” becomes available in a public release.

Brent