Merge branch 'fix/ptr' into 'develop'

fix: MkPullToRefresh not work

Co-authored-by: Lhcfl <Lhcfl@outlook.com>

Closes #10913

See merge request firefish/firefish!10776
This commit is contained in:
naskya 2024-04-27 12:32:34 +00:00
commit 64ca96d759
2 changed files with 3 additions and 1 deletions

View file

@ -242,6 +242,8 @@ const reload = (): Promise<void> => {
appended.value = [];
prepended.value = [];
idMap.clear();
offset.value = 0;
nextPagingBy = {};
return init();
};

View file

@ -203,7 +203,7 @@ function unregisterEventListenersForReadyToPull() {
onMounted(() => {
if (rootEl.value == null) return;
scrollEl = getScrollContainer(rootEl.value);
scrollEl = getScrollContainer(rootEl.value) ?? document.querySelector("HTML");
if (scrollEl == null) return;
scrollEl.addEventListener("scroll", onScrollContainerScroll, {