mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[ASScrollDirection] Fix scroll direction interpretation after recent changes to this logic.
This commit is contained in:
@@ -592,9 +592,9 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
|
||||
- (ASScrollDirection)_scrollDirectionForVelocity:(CGPoint)velocity
|
||||
{
|
||||
ASScrollDirection direction = ASScrollDirectionNone;
|
||||
if (velocity.y > 0) {
|
||||
if (velocity.y < 0.0) {
|
||||
direction = ASScrollDirectionDown;
|
||||
} else if (velocity.y < 0) {
|
||||
} else if (velocity.y > 0.0) {
|
||||
direction = ASScrollDirectionUp;
|
||||
}
|
||||
return direction;
|
||||
|
||||
Reference in New Issue
Block a user