ScrollView: Disable Vertical Scrolling

I used “verticalScrollingDisabled = true”

But I am still able to scroll vertically. Is this a bug?

Beware: The Corona Sample Code is WRONG

I found another post and realized it should be:

“verticalScrollDisabled = true”

not

“verticalScrollingDisabled = true”

http://forums.coronalabs.com/topic/33001-cant-seem-to-disable-horizontal-scroll-in-widget-2-scrollview/?hl=verticalscrollingdisabled

Hi ChunkyApps, did you hit the thumbs down on the documentation and then tell us what is wrong with it?  If not, could you.  This will trigger those docs to get corrected.

Thanks

Rob

Hi Rob, the documentation is correct. I was using the Widget example in the SampleCode folder that ships with Corona. That is using “verticalScrollingDisabled” which doesn’t work. Thankfully, I found a forum post about it after I posted my own question. 

Okay I will forward to the team to let them know. 

Beware: The Corona Sample Code is WRONG

I found another post and realized it should be:

“verticalScrollDisabled = true”

not

“verticalScrollingDisabled = true”

http://forums.coronalabs.com/topic/33001-cant-seem-to-disable-horizontal-scroll-in-widget-2-scrollview/?hl=verticalscrollingdisabled

Hi ChunkyApps, did you hit the thumbs down on the documentation and then tell us what is wrong with it?  If not, could you.  This will trigger those docs to get corrected.

Thanks

Rob

Hi Rob, the documentation is correct. I was using the Widget example in the SampleCode folder that ships with Corona. That is using “verticalScrollingDisabled” which doesn’t work. Thankfully, I found a forum post about it after I posted my own question. 

Okay I will forward to the team to let them know. 

it is bug… I’m using corona 2393

Hi @yogi-s,

This bug was fixed somewhere between #2393 and the most recent public build (#2511). Please upgrade to the latest build and test your code again.

Best regards,

Brent

it is bug… I’m using corona 2393

Hi @yogi-s,

This bug was fixed somewhere between #2393 and the most recent public build (#2511). Please upgrade to the latest build and test your code again.

Best regards,

Brent

This is yet still a bug in the latest daily build… happening consistently.  

Only way that seems to fix it is by adding this after the scrollView is created:

scrollView:getView()._isVerticalScrollingDisabled = true

Hi Nate,

What is the issue here? You’ve responded to a post which almost 2 years old. I’ll need more context before I can assist.

Best regards,

Brent

Hi Brent I thought this bug was fixed but it’s still happening two years later in my latest daily build without that extra line I added. I removed that line figuring I didn’t need it anymore and the bug appeared and I was able to scroll vertically with verticalScrollDisabled set to true. Figured this was a good place to bring that back up.

I can investigate more on my end and will keep you posted… Thanks

Nate

Hi Nate,

What is your goal? To set which axes it can scroll on when you create it? Or dynamically change that afterward?

Brent

I have a long horizontal nav that uses a scrollView… Ultimately it should scroll horizontally only while swiping left and right. It does this but it also if I pull up or down from within the scrollView, the content inside the scrollView moves up or down, then slowly retracts back vertically to center. Kinda like it’s trying to allow vertical but the content’s only laid out horizontally so it snaps vertically back. Hope that makes sense!

Hey Brent if you send me an email - nate@borderleap.com I can send you a video of the issue…