fix: #2615 scrollbar jitter under certain message counts
This commit is contained in:
parent
e8e01aa60d
commit
db5c7aba78
|
@ -940,7 +940,7 @@ function _Chat() {
|
||||||
const prevPageMsgIndex = msgRenderIndex - CHAT_PAGE_SIZE;
|
const prevPageMsgIndex = msgRenderIndex - CHAT_PAGE_SIZE;
|
||||||
const nextPageMsgIndex = msgRenderIndex + CHAT_PAGE_SIZE;
|
const nextPageMsgIndex = msgRenderIndex + CHAT_PAGE_SIZE;
|
||||||
|
|
||||||
if (isTouchTopEdge) {
|
if (isTouchTopEdge && !isTouchBottomEdge) {
|
||||||
setMsgRenderIndex(prevPageMsgIndex);
|
setMsgRenderIndex(prevPageMsgIndex);
|
||||||
} else if (isTouchBottomEdge) {
|
} else if (isTouchBottomEdge) {
|
||||||
setMsgRenderIndex(nextPageMsgIndex);
|
setMsgRenderIndex(nextPageMsgIndex);
|
||||||
|
|
Loading…
Reference in New Issue