ScrollView: allow to scroll to negative x

Hello guys.

Is it able to allow to scroll horizontal scrollView to negative x?

For example i put some picture into scrollView with x = -1000 and y = 20. 

If i will scroll to this picture and then will release mouse button - then scrollView will return to origin x value.

Hope, you will understand what i meaning :slight_smile:

Thanks

It should work. Have you tried?

Rob

yes, but scrollView always return view position to positive x(x > 0) when i release finger or mouse button

I am unsure if this is by design or a bug. But regardless I invite you to file a bug report. Make a simple project that demonstrates the problem and put it in a .zip file. It must have a main.lua, config.lua and build.settings as well as any assets needed to allow us to run/build the app. Use the Report a Bug link at the top of the page to file the bug report.

Thanks

Rob

I believe this is by design. A scrollView should snap back to its bounds when released. But you can roll your own “boundless” version pretty easily by creating a display.newContainer and adding a touch listener that scrolls the contents. I’ve done something similar in the past to create a “looping” scrollView that can be scrolled endlessly (see socialpoetryapp.com to see it in action.) :wink:

Dear Rob Miracle,

I hope you can read my post. i have a question and thinking about it through some week and google but not find a answer. I hope you can help me.

I made a background (2048*1536) on Adobe Illustrator (AI)

Now, I put some tile on the background for my character move, jump,…on it.

But as you know, In the background made in AI, I only can put a limited tiles and when my character move from left to right, the above tiles will be over. What I want is when my character move from left to right, an endless tiles will appears randomly at positions I want, for my character jumps and moves on it. 

I think a solution. That is made 40 background in adobe illustrator and put tiles at position i want in each background and combine them. But I failed because it is too large and I cannot put it continuos in Corona. 

Do you have any other better solutions, please help me. Sorry because I am a newbie, so if you help me, please write in detailed.

Thank you very much and sorry if I mind you. I 

Yes, i also think this is by design.

But i’ve found another solution. Just added pictures with some offset in x coordinate(so x dont have negative values anymore) and then scroll to the center of scrollView

Hi @markezing. Welcome to the forums.

It’s important to understand these are “Community Forums”. You should not direct a question directly to me. When you do others in the community will not respond and you miss out on a wealth of options.

Secondly you’re asking a question that has nothing with this thread. We are talking about how to position scrollViews at negative values. Your question has nothing to do with the conversation going on here. We call this “Hijacking” in the forum world and it’s not permitted. Please ask your question in a new thread.

Thank you!

Rob

It should work. Have you tried?

Rob

yes, but scrollView always return view position to positive x(x > 0) when i release finger or mouse button

I am unsure if this is by design or a bug. But regardless I invite you to file a bug report. Make a simple project that demonstrates the problem and put it in a .zip file. It must have a main.lua, config.lua and build.settings as well as any assets needed to allow us to run/build the app. Use the Report a Bug link at the top of the page to file the bug report.

Thanks

Rob

I believe this is by design. A scrollView should snap back to its bounds when released. But you can roll your own “boundless” version pretty easily by creating a display.newContainer and adding a touch listener that scrolls the contents. I’ve done something similar in the past to create a “looping” scrollView that can be scrolled endlessly (see socialpoetryapp.com to see it in action.) :wink:

Dear Rob Miracle,

I hope you can read my post. i have a question and thinking about it through some week and google but not find a answer. I hope you can help me.

I made a background (2048*1536) on Adobe Illustrator (AI)

Now, I put some tile on the background for my character move, jump,…on it.

But as you know, In the background made in AI, I only can put a limited tiles and when my character move from left to right, the above tiles will be over. What I want is when my character move from left to right, an endless tiles will appears randomly at positions I want, for my character jumps and moves on it. 

I think a solution. That is made 40 background in adobe illustrator and put tiles at position i want in each background and combine them. But I failed because it is too large and I cannot put it continuos in Corona. 

Do you have any other better solutions, please help me. Sorry because I am a newbie, so if you help me, please write in detailed.

Thank you very much and sorry if I mind you. I 

Yes, i also think this is by design.

But i’ve found another solution. Just added pictures with some offset in x coordinate(so x dont have negative values anymore) and then scroll to the center of scrollView

Hi @markezing. Welcome to the forums.

It’s important to understand these are “Community Forums”. You should not direct a question directly to me. When you do others in the community will not respond and you miss out on a wealth of options.

Secondly you’re asking a question that has nothing with this thread. We are talking about how to position scrollViews at negative values. Your question has nothing to do with the conversation going on here. We call this “Hijacking” in the forum world and it’s not permitted. Please ask your question in a new thread.

Thank you!

Rob