The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
⚗️ scrollfix
Timur Ercan93f731e40514
diff --git a/apps/web/components/editor/pdf-viewer.jsx b/apps/web/components/editor/pdf-viewer.jsxindex 2bdb17350..ccb541c48 100644--- a/apps/web/components/editor/pdf-viewer.jsx+++ b/apps/web/components/editor/pdf-viewer.jsx@@ -48,10 +48,6 @@ export default function PDFViewer(props) {onMouseDown={(e) => {console.log("saving " + window.scrollY);setScrollPosition(window.scrollY);- setTimeout(() => {- console.log("setting " + scrollPosition);- window.scroll(0, scrollPosition);- }, 0);props.onMouseDown(e, index);}}key={short.generate().toString()}@@ -67,7 +63,10 @@ export default function PDFViewer(props) {pageNumber={index + 1}renderAnnotationLayer={false}renderTextLayer={false}- onLoadSuccess={() => setLoading(false)}+ onLoadSuccess={() => {+ setLoading(false);+ window.scroll(0, scrollPosition);+ }}onRenderError={() => setLoading(false)}></Page>{props?.fields