修复直播间长期不动会自动停止滚动的问题
This commit is contained in:
parent
dc529b6640
commit
bdc43baaa8
@ -64,7 +64,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
|||||||
private LinearLayoutManager mLayoutManager;
|
private LinearLayoutManager mLayoutManager;
|
||||||
|
|
||||||
private IMLoginModel model;
|
private IMLoginModel model;
|
||||||
private int mRecyclerViewScrolledDx, mRecyclerViewScrolledDy;
|
private int mRecyclerViewScrolledDy;
|
||||||
|
|
||||||
private int mPosition;
|
private int mPosition;
|
||||||
|
|
||||||
@ -127,7 +127,7 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
|||||||
@Override
|
@Override
|
||||||
public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {
|
public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {
|
||||||
super.onScrolled(recyclerView, dx, dy);
|
super.onScrolled(recyclerView, dx, dy);
|
||||||
mRecyclerViewScrolledDx = dx;
|
if(isSlideToBottom(recyclerView))return;
|
||||||
mRecyclerViewScrolledDy = dy;
|
mRecyclerViewScrolledDy = dy;
|
||||||
Log.i(TAG, "onScrolled: dx = " + dx + ", dy = " + dy);
|
Log.i(TAG, "onScrolled: dx = " + dx + ", dy = " + dy);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user