修复直播间长期不动会自动停止滚动的问题

This commit is contained in:
zlzw 2022-12-16 15:40:03 +08:00
parent dc529b6640
commit bdc43baaa8

View File

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