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

removed isDragging check and added boolean dragging to event object #85

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 9 additions & 11 deletions iphone/Classes/TiUITableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -2037,17 +2037,15 @@ - (BOOL)scrollViewShouldScrollToTop:(UIScrollView *)scrollView

- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
if (scrollView.isDragging)
{
if ([self.proxy _hasListeners:@"scroll"])
{
NSMutableDictionary *event = [NSMutableDictionary dictionary];
[event setObject:[TiUtils pointToDictionary:scrollView.contentOffset] forKey:@"contentOffset"];
[event setObject:[TiUtils sizeToDictionary:scrollView.contentSize] forKey:@"contentSize"];
[event setObject:[TiUtils sizeToDictionary:tableview.bounds.size] forKey:@"size"];
[self.proxy fireEvent:@"scroll" withObject:event];
}
}
if ([self.proxy _hasListeners:@"scroll"])
{
NSMutableDictionary *event = [NSMutableDictionary dictionary];
[event setObject:NUMBOOL([scrollView isDragging]) forKey:@"dragging"];
[event setObject:[TiUtils pointToDictionary:scrollView.contentOffset] forKey:@"contentOffset"];
[event setObject:[TiUtils sizeToDictionary:scrollView.contentSize] forKey:@"contentSize"];
[event setObject:[TiUtils sizeToDictionary:tableview.bounds.size] forKey:@"size"];
[self.proxy fireEvent:@"scroll" withObject:event];
}
}


Expand Down