Skip to content

Commit

Permalink
fix: fix “direction” event attribute default
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Oct 5, 2024
1 parent 6f7e07c commit 24acf7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iphone/Classes/TiUIListView.m
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,7 @@ - (void)scrollViewDidScroll:(UIScrollView *)scrollView
TiUIListSectionProxy *section;
CGFloat topSpacing = scrollView.contentOffset.y + scrollView.adjustedContentInset.top;

NSString *direction = [NSNull null];
NSString *direction = @"unknown";

if (self.lastContentOffset > scrollView.contentOffset.y) {
direction = @"down";
Expand Down Expand Up @@ -2122,7 +2122,7 @@ - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset
{
if ([[self proxy] _hasListeners:@"scrolling"]) {
NSString *direction = nil;
NSString *direction = @"unknown";

if (velocity.y > 0) {
direction = @"up";
Expand Down

0 comments on commit 24acf7e

Please # to comment.