Commit 0af8ba95eb4c7da357347de14af22c218f9b7a96

Authored by yanglingyu
1 parent d39eb576

no message

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