mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
⚗️ revert scrolling fixes
This commit is contained in:
@ -46,8 +46,6 @@ export default function PDFViewer(props) {
|
||||
<Fragment key={short.generate().toString()}>
|
||||
<div
|
||||
onMouseDown={(e) => {
|
||||
console.log("saving " + window.scrollY);
|
||||
setScrollPosition(window.scrollY);
|
||||
props.onMouseDown(e, index);
|
||||
}}
|
||||
key={short.generate().toString()}
|
||||
@ -65,7 +63,6 @@ export default function PDFViewer(props) {
|
||||
renderTextLayer={false}
|
||||
onLoadSuccess={() => {
|
||||
setLoading(false);
|
||||
window.scroll(0, scrollPosition);
|
||||
}}
|
||||
onRenderError={() => setLoading(false)}
|
||||
></Page>
|
||||
|
||||
Reference in New Issue
Block a user