ScrollView misbehavior while scrolling ( 1.0 and 2.0 )

Hi,

I`m having a misbehavior from widget.newScrollView who superpose buttons, tableViews, etc while scrolling.
The scrollview keeps receiving touches out of his bounds.

I made a video to show the misbehavior.

Any tips ?

http://www.youtube.com/watch?v=diRY4ETxOJc&feature=youtu.be [import]uid: 156274 topic_id: 36407 reply_id: 336407[/import]

The new.scrollView in widget 2.0 keeps scrolling to the top…
how can i set the scrolling to stay in position ?

[import]uid: 156274 topic_id: 36407 reply_id: 144553[/import]

Hi renato.

This isn’t misbehavior. If you wish for your scrollView to only respond to touch events confined to it’s viewport you need to use a mask: http://docs.coronalabs.com/daily/api/library/widget/newScrollView.html

See the “maskFile” parameter in the above link.
If you wish your scrollView to not scroll either horizontally or vertically you can use the parameters: “horizontalScrollDisabled” or “verticalScrollDisabled” Also listed in the above link. [import]uid: 84637 topic_id: 36407 reply_id: 144559[/import]

listSelectGroup = widget.newScrollView{
left = 0,
top = 0,
width = 384,
height = 504,
maskFile = “images/mask.png”,
listener = scrollViewListener
}

this is the code Im using, im using a maskFile.
In widget 2.0 i could see that the error is fixed. But the scroll keeps scrolling up when it loses focus.
how can i fix the auto scroll up ( this autoscroll wasn’t happening at 1.0) ??? [import]uid: 156274 topic_id: 36407 reply_id: 144560[/import]

Just so were clear:

When you say it keeps scrolling up when it loses focus… do you mean that you have scrolled it and you take your finger off the screen and it keeps scrolling until it comes to a stop?

[import]uid: 84637 topic_id: 36407 reply_id: 144561[/import]

Is hard to me to describe. So I made another video with the difference of behaving from 1.0 to 2.0 when the scrollview loses focus.

http://www.youtube.com/watch?v=_wad50wjhpg&feature=youtu.be

At first ( 1.0) I scroll it to the bottom of a widget, when it loses focus the bottom of the widget goes to the end and it stops.

Second one (2.0) , I scroll it to the bottom, but when it loses focus , the scroll goes in the oposite direction until it arrives to the initial position.

same code. [import]uid: 156274 topic_id: 36407 reply_id: 144567[/import]

Ah, yeah that is a bug.

That issue has been resolved and will be available in the next daily build. [import]uid: 84637 topic_id: 36407 reply_id: 144572[/import]

the next daily build the bug is other now !

http://www.youtube.com/watch?v=bSgO53mKp1g&feature=youtu.be

:frowning: i really need this scrollViews [import]uid: 156274 topic_id: 36407 reply_id: 144964[/import]

Hey Renato, what daily build are you using? Is that a tableView you are using in that video or a scrollView? [import]uid: 84637 topic_id: 36407 reply_id: 144965[/import]

Tried both CoronaSDK 2013.1041 and CoronaSDK 2013.1040…
this is a ScrollView

CoronaSDK 2013.1038 produced the bug from the other video. [import]uid: 156274 topic_id: 36407 reply_id: 144967[/import]

This appears to be the same issue which affected tableViews with short rows.
I have fixed this issue and the fix will be available in one of the next few daily builds.

Thanks for reporting the issue. [import]uid: 84637 topic_id: 36407 reply_id: 144968[/import]

The new.scrollView in widget 2.0 keeps scrolling to the top…
how can i set the scrolling to stay in position ?

[import]uid: 156274 topic_id: 36407 reply_id: 144553[/import]

Hi renato.

This isn’t misbehavior. If you wish for your scrollView to only respond to touch events confined to it’s viewport you need to use a mask: http://docs.coronalabs.com/daily/api/library/widget/newScrollView.html

See the “maskFile” parameter in the above link.
If you wish your scrollView to not scroll either horizontally or vertically you can use the parameters: “horizontalScrollDisabled” or “verticalScrollDisabled” Also listed in the above link. [import]uid: 84637 topic_id: 36407 reply_id: 144559[/import]

listSelectGroup = widget.newScrollView{
left = 0,
top = 0,
width = 384,
height = 504,
maskFile = “images/mask.png”,
listener = scrollViewListener
}

this is the code Im using, im using a maskFile.
In widget 2.0 i could see that the error is fixed. But the scroll keeps scrolling up when it loses focus.
how can i fix the auto scroll up ( this autoscroll wasn’t happening at 1.0) ??? [import]uid: 156274 topic_id: 36407 reply_id: 144560[/import]

Just so were clear:

When you say it keeps scrolling up when it loses focus… do you mean that you have scrolled it and you take your finger off the screen and it keeps scrolling until it comes to a stop?

[import]uid: 84637 topic_id: 36407 reply_id: 144561[/import]

Is hard to me to describe. So I made another video with the difference of behaving from 1.0 to 2.0 when the scrollview loses focus.

http://www.youtube.com/watch?v=_wad50wjhpg&feature=youtu.be

At first ( 1.0) I scroll it to the bottom of a widget, when it loses focus the bottom of the widget goes to the end and it stops.

Second one (2.0) , I scroll it to the bottom, but when it loses focus , the scroll goes in the oposite direction until it arrives to the initial position.

same code. [import]uid: 156274 topic_id: 36407 reply_id: 144567[/import]

Ah, yeah that is a bug.

That issue has been resolved and will be available in the next daily build. [import]uid: 84637 topic_id: 36407 reply_id: 144572[/import]

the next daily build the bug is other now !

http://www.youtube.com/watch?v=bSgO53mKp1g&feature=youtu.be

:frowning: i really need this scrollViews [import]uid: 156274 topic_id: 36407 reply_id: 144964[/import]

Hey Renato, what daily build are you using? Is that a tableView you are using in that video or a scrollView? [import]uid: 84637 topic_id: 36407 reply_id: 144965[/import]

Tried both CoronaSDK 2013.1041 and CoronaSDK 2013.1040…
this is a ScrollView

CoronaSDK 2013.1038 produced the bug from the other video. [import]uid: 156274 topic_id: 36407 reply_id: 144967[/import]