Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-11820: Android: ScrollableView in ScrollView is not working #3558

Merged
merged 4 commits into from Jan 31, 2013

Conversation

ayeung
Copy link
Contributor

@ayeung ayeung commented Dec 7, 2012

https://jira.appcelerator.org/browse/TIMOB-11820

Please use the test case in the comments, but set the 'canCancelEvents' property in the scroll view to true. I have made changes to the scrollable view, so you do not need to set the 'canCancelEvents' on the scrollview.

Please also run the test case in https://jira.appcelerator.org/browse/TIMOB-9955. Since the user specified 'canCancelEvents' events to be false, the blue view SHOULD be unscrollable. I have documented that this may be different in iOS in the docs.

@ghost ghost assigned hieupham007 Jan 17, 2013
public boolean dispatchTouchEvent(MotionEvent ev)
{
// If the parent is a scroll view, then we prevent the scroll view from intercepting touch events
if (this.getParent() instanceof TiScrollViewLayout) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably just call getParent().

@hieupham007
Copy link
Contributor

Code reviewed and functionally tested. Looks good, will merge after comment is addressed.

@ayeung
Copy link
Contributor Author

ayeung commented Jan 31, 2013

Code updated.

hieupham007 added a commit that referenced this pull request Jan 31, 2013
TIMOB-11820: Android: ScrollableView in ScrollView is not working
@hieupham007 hieupham007 merged commit 85f4718 into tidev:master Jan 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants