From 59f49be0c3f6a838a11a84871f79af84b48d37f1 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Thu, 3 Aug 2017 18:41:59 +0300 Subject: [PATCH] Specify slider animation duration in addition to velocity --- app/qml/BooksPageSlider.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/qml/BooksPageSlider.qml b/app/qml/BooksPageSlider.qml index e3b06e9..a18f4e6 100644 --- a/app/qml/BooksPageSlider.qml +++ b/app/qml/BooksPageSlider.qml @@ -204,7 +204,10 @@ MouseArea { color: slider.highlighted ? highlightColor : primaryColor Behavior on width { enabled: !_widthChanged - SmoothedAnimation { velocity: 1500 } + SmoothedAnimation { + velocity: 1500 + duration: 500 + } } } @@ -235,7 +238,10 @@ MouseArea { color: slider.highlighted ? highlightColor : primaryColor Behavior on x { enabled: !_widthChanged - SmoothedAnimation { velocity: 1500 } + SmoothedAnimation { + velocity: 1500 + duration: 500 + } } }