Only observe "ReaderChapterViewer" resize events for scroll position preservation

It's not necessary to observe all elements, since "ReaderChapterViewer" is the parent and thus increases/decreases in size in case its children change.
This commit is contained in:
schroda
2025-04-05 12:50:14 +02:00
parent b37ff532f5
commit da34c77f03

View File

@@ -117,7 +117,6 @@ export const useReaderPreserveScrollPosition = (
});
mutationObserver.observe(element, {
childList: true,
subtree: true,
});
return () => {