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-17539-Dont consume event while processing swipe #6114

Closed
wants to merge 1 commit into from

Conversation

salachi
Copy link
Contributor

@salachi salachi commented Sep 17, 2014

Make sure that we don't consume the fling event by returning true.

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

return fireEvent(TiC.EVENT_SWIPE, data);
// we don't want to consume the event by returning here as the framework may still
// need the event to process scrolling etc - TIMOB-17539
fireEvent(TiC.EVENT_SWIPE, data);
Copy link
Contributor

Choose a reason for hiding this comment

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

This will break apps that rely on this event being consumed.

@hieupham007
Copy link
Contributor

Sunil, this change alters the current Android touch architecture, i.e all gesture events are consumed if there's an active listener. This should not be merged into master, but developers can use this as a workaround if they want swipe to NOT consume the touch event as they see fit.

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