From be2b66f955fb1818678e9f03f4e668b09f2b0785 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Mon, 23 Jul 2018 22:51:47 +0300 Subject: [PATCH] [app] Fixed a problem with paging animation --- app/qml/BooksBookView.qml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/qml/BooksBookView.qml b/app/qml/BooksBookView.qml index 6fa2aa0..ca10f21 100644 --- a/app/qml/BooksBookView.qml +++ b/app/qml/BooksBookView.qml @@ -58,7 +58,7 @@ SilicaFlickable { { pager: true, page: true, title: true, tools: true } ] - interactive: !selecting && + interactive: !selecting && !scrollAnimation.running && (!linkMenu || !linkMenu.visible) && (!imageView || !imageView.visible) && (!footnoteView || !footnoteView.visible) @@ -146,14 +146,12 @@ SilicaFlickable { property bool completed Component.onCompleted: { - //console.log(currentPage) bookViewWatcher.positionViewAtIndex(currentPage) completed = true } onCurrentPageChanged: { - //console.log(currentPage, completed, flicking) - if (completed && !flicking) { + if (completed && !flicking && !scrollAnimation.running) { bookViewWatcher.positionViewAtIndex(currentPage) } } @@ -169,13 +167,11 @@ SilicaFlickable { listView: bookView onCurrentIndexChanged: { if (listView.completed && !listView.flicking && currentIndex >= 0) { - //console.log(currentIndex, listView.completed, listView.flicking) updateModel() } } function updateModel() { hideViews() - //console.trace() stackModel.currentPage = currentIndex if (!pager.pressed) { pager.currentPage = currentIndex