zhaoyang 2 anni fa
parent
commit
f3c2493d11

+ 6 - 0
GameClient/Assets/Game/HotUpdate/Views/Poem/PoemGalleryView.cs

@@ -361,6 +361,9 @@ namespace GFGGame
 
         private void onScrollEnd()
         {
+            GComponent header = _comScroll.scrollPane.header;
+            if (!header.visible || header.height >= header.sourceHeight || isPullDown) return;
+
             if (_comScroll.scrollPane.percY == 1)
             {
                 ReqGalleryList(_galleryDatas.Count);
@@ -655,6 +658,9 @@ namespace GFGGame
         //上拉刷新
         private async void OnPullUpToRefresh()
         {
+            GComponent header = _comScroll.scrollPane.header;
+            if (!header.visible || header.height >= header.sourceHeight || isPullDown) return;
+
             GComponent footer = _comScroll.scrollPane.footer;
             if (footer.height < footer.sourceHeight || isPullUp) return;
             // _lastListCount = _list.numItems;