⚗️ revert scrolling fixes

This commit is contained in:
Timur Ercan
2023-02-22 17:57:25 +01:00
parent 93f731e405
commit f6e000c80f

View File

@ -46,8 +46,6 @@ export default function PDFViewer(props) {
<Fragment key={short.generate().toString()}> <Fragment key={short.generate().toString()}>
<div <div
onMouseDown={(e) => { onMouseDown={(e) => {
console.log("saving " + window.scrollY);
setScrollPosition(window.scrollY);
props.onMouseDown(e, index); props.onMouseDown(e, index);
}} }}
key={short.generate().toString()} key={short.generate().toString()}
@ -65,7 +63,6 @@ export default function PDFViewer(props) {
renderTextLayer={false} renderTextLayer={false}
onLoadSuccess={() => { onLoadSuccess={() => {
setLoading(false); setLoading(false);
window.scroll(0, scrollPosition);
}} }}
onRenderError={() => setLoading(false)} onRenderError={() => setLoading(false)}
></Page> ></Page>