mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-27 12:55:11 +01:00
Chat List: Fix jumping
This commit is contained in:
parent
3f4901df28
commit
131ff8823e
@ -70,6 +70,10 @@ export default (
|
||||
return;
|
||||
}
|
||||
|
||||
if (!noScroll) {
|
||||
lastParamsRef.current = { ...lastParamsRef.current, direction, offsetId };
|
||||
}
|
||||
|
||||
const {
|
||||
newViewportIds, areSomeLocal, areAllLocal,
|
||||
} = getViewportSlice(listIds, offsetId, direction, listSlice);
|
||||
@ -80,10 +84,6 @@ export default (
|
||||
}
|
||||
|
||||
if (!areAllLocal && loadMoreBackwards) {
|
||||
if (!noScroll) {
|
||||
lastParamsRef.current = { ...lastParamsRef.current, direction, offsetId };
|
||||
}
|
||||
|
||||
loadMoreBackwards({ offsetId });
|
||||
}
|
||||
}, [listIds, listSlice, loadMoreBackwards, forceUpdate]);
|
||||
|
Loading…
Reference in New Issue
Block a user