mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 08:42:12 +10:00
⚗️ revert scrolling fixes
This commit is contained in:
@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user