twitter-archive/twui

Pulling in not working for scrollViewDidEndDragging

Opened this issue · 0 comments

ynie commented

In TUIScrollView ~line 950,


if(_pull.xPulling) {
    _pull.xPulling = NO;
...
 }
        
if(_pull.yPulling) {
    _pull.yPulling = NO;
...
}
        
if(self.isPulling && _scrollViewFlags.didChangeContentInset){
...
}

self.isPulling is always false. Create a temporary variable to remember the state of isPulling can solve this problem.

Steven