diff options
-rw-r--r-- | src/pdfquick/qml/PdfMultiPageView.qml | 2 | ||||
-rw-r--r-- | src/pdfquick/qml/PdfScrollablePageView.qml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pdfquick/qml/PdfMultiPageView.qml b/src/pdfquick/qml/PdfMultiPageView.qml index 5a52e1876..be90f5e00 100644 --- a/src/pdfquick/qml/PdfMultiPageView.qml +++ b/src/pdfquick/qml/PdfMultiPageView.qml @@ -387,7 +387,7 @@ Item { id: navigationStack property bool jumping: false property int previousPage: 0 - onJumped: { + onJumped: function(page, location, zoom) { jumping = true root.renderScale = zoom if (location.y < 0) { 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 |