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); }