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-13723] LongClick fired for row, don't fire again #4233

Merged
merged 2 commits into from Jun 5, 2013

Conversation

salachi
Copy link
Contributor

@salachi salachi commented May 7, 2013

Do not fire longClick if it is fired on rowProxy.

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

TableViewRowProxy rp = (TableViewRowProxy) item.proxy;
event.put(TiC.EVENT_PROPERTY_SOURCE, rp);
// The event will bubble up to the parent.
if (rp.hierarchyHasListener(eventName)) {
rp.fireEvent(eventName, event);
if (longClick) {
Copy link
Contributor

Choose a reason for hiding this comment

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

There's no need to check for longclick here, you already do it below...

I would also name longClickFired to clickFired

@ayeung
Copy link
Contributor

ayeung commented Jun 5, 2013

Code reviewed and functionally tested. Request Accepted.

ayeung pushed a commit that referenced this pull request Jun 5, 2013
[TIMOB-13723] LongClick fired for row, don't fire again
@ayeung ayeung merged commit 5465984 into tidev:master Jun 5, 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