Fix ASTableView to have None direction

This commit is contained in:
Huy Nguyen
2016-02-01 13:25:22 -08:00
parent b889d81de8
commit 0f3f6f0dff

View File

@@ -580,7 +580,7 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
ASScrollDirection direction = ASScrollDirectionNone;
if (velocity.y > 0) {
direction = ASScrollDirectionDown;
} else {
} else if (velocity.y < 0) {
direction = ASScrollDirectionUp;
}
return direction;