summaryrefslogtreecommitdiff
path: root/src/pdfquick/qml/PdfScrollablePageView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdfquick/qml/PdfScrollablePageView.qml')
-rw-r--r--src/pdfquick/qml/PdfScrollablePageView.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdfquick/qml/PdfScrollablePageView.qml b/src/pdfquick/qml/PdfScrollablePageView.qml
index 1e692324f..4c8db84b8 100644
--- a/src/pdfquick/qml/PdfScrollablePageView.qml
+++ b/src/pdfquick/qml/PdfScrollablePageView.qml
@@ -146,7 +146,7 @@ Flickable {
PdfNavigationStack {
id: navigationStack
- onJumped: {
+ onJumped: function(page, location, zoom) {
root.renderScale = zoom
var dx = Math.max(0, location.x * root.renderScale - root.width / 2) - root.contentX
var dy = Math.max(0, location.y * root.renderScale - root.height / 2) - root.contentY