Commit 0af8ba95eb4c7da357347de14af22c218f9b7a96

Authored by yanglingyu
1 parent d39eb576

no message

CNLiveVideoClassifyKit/Classes/ClassifyCategory/Controller/CNLiveListController.m
... ... @@ -132,12 +132,13 @@
132 132 if (self.isLoading) {
133 133 return;
134 134 }
  135 + UIScrollView *scrollView = object;
135 136 NSValue *newValue = change[NSKeyValueChangeNewKey];
136 137 CGFloat contentPointY = newValue.UIOffsetValue.vertical;
137 138 if (contentPointY>self.contentOffetY&&contentPointY>0) {
138 139 [[CNLiveListManager shareListManager] firstHeaderUp:YES];
139 140 self.contentOffetY = contentPointY;
140   - }else if (self.contentOffetY > contentPointY){
  141 + }else if (self.contentOffetY > contentPointY &&contentPointY<scrollView.contentSize.height/2){
141 142 self.contentOffetY = contentPointY;
142 143 [[CNLiveListManager shareListManager] firstHeaderUp:NO];
143 144 }
... ...