aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js7
-rw-r--r--pdf-as-web/src/main/webapp/index.jsp4
2 files changed, 7 insertions, 4 deletions
diff --git a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js
index 605d49a9..f31d5dc5 100644
--- a/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js
+++ b/pdf-as-web/src/main/webapp/assets/js/pdf.js/web/viewer.js
@@ -180,7 +180,6 @@ function scrollIntoView(element, spot) {
*/
function watchScroll(viewAreaElement, callback) {
- console.log("watch scroll");
var debounceScroll = function debounceScroll(evt) {
if (rAF) {
return;
@@ -198,6 +197,8 @@ function watchScroll(viewAreaElement, callback) {
state.lastY = currentY;
+ // place the signature again on current page
+ $("#placeSignature").click();
callback(state);
});
@@ -2955,11 +2956,12 @@ var PDFRenderingQueue = (function PDFRenderingQueueClosure() {
if (views[previousPageIndex] &&
!this.isViewFinished(views[previousPageIndex])) {
console.log("got to page: " + nextPageIndex);
- $("#placeSignature").click();
+
return views[previousPageIndex];
}
}
// Everything that needs to be rendered has been.
+
return null;
},
@@ -6335,6 +6337,7 @@ var PDFViewerApplication = {
});
console.log("pdfview just finished loading");
+
},
setInitialView: function pdfViewSetInitialView(storedHash, scale) {
diff --git a/pdf-as-web/src/main/webapp/index.jsp b/pdf-as-web/src/main/webapp/index.jsp
index fdd3c53e..492e9d28 100644
--- a/pdf-as-web/src/main/webapp/index.jsp
+++ b/pdf-as-web/src/main/webapp/index.jsp
@@ -164,10 +164,10 @@
<div class="center">
<div id="ViewerExternToolbar" class="center">
<div id="placeSignatureExtern">
- <img src="assets/img/federohne.svg" title="Place Signature on current Page"><br>Add
+ <img src="assets/img/federohne.svg" title="Place Signature on current Page"><br>new page
</div>
<div id="placeContinue">
- <img src="assets/img/federohne.svg" title="Continue"><br>Continue
+ <img src="assets/img/federohne.svg" title="Continue"><br>continue
</div>
</div>
</div>