From bdc43baaa86d2abd7b84cfe052cfbb0eaed4a5e5 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Fri, 16 Dec 2022 15:40:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9B=B4=E6=92=AD=E9=97=B4?= =?UTF-8?q?=E9=95=BF=E6=9C=9F=E4=B8=8D=E5=8A=A8=E4=BC=9A=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=81=9C=E6=AD=A2=E6=BB=9A=E5=8A=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/live/adapter/LiveChatAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/live/src/main/java/com/yunbao/live/adapter/LiveChatAdapter.java b/live/src/main/java/com/yunbao/live/adapter/LiveChatAdapter.java index 3fc05e41a..3f9556029 100644 --- a/live/src/main/java/com/yunbao/live/adapter/LiveChatAdapter.java +++ b/live/src/main/java/com/yunbao/live/adapter/LiveChatAdapter.java @@ -64,7 +64,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter { private LinearLayoutManager mLayoutManager; private IMLoginModel model; - private int mRecyclerViewScrolledDx, mRecyclerViewScrolledDy; + private int mRecyclerViewScrolledDy; private int mPosition; @@ -127,7 +127,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter { @Override public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) { super.onScrolled(recyclerView, dx, dy); - mRecyclerViewScrolledDx = dx; + if(isSlideToBottom(recyclerView))return; mRecyclerViewScrolledDy = dy; Log.i(TAG, "onScrolled: dx = " + dx + ", dy = " + dy); }