Commit 8b5d939e authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Reduce duration of image zooming animation

longDuration is very long when zooming with a mouse wheel. Reducing it
to veryShortDuration means the animation only happens when rapidly
zooming in or out, which makes things feel more responsive.
parent 25f01dec
......@@ -170,7 +170,7 @@ Flickable {
property: "contentWidth"
from: flick.contentWidth
to: zoomAnim.width
duration: Kirigami.Units.longDuration
duration: Kirigami.Units.veryShortDuration
easing.type: Easing.InOutQuad
}
NumberAnimation {
......@@ -178,7 +178,7 @@ Flickable {
property: "contentHeight"
from: flick.contentHeight
to: zoomAnim.height
duration: Kirigami.Units.longDuration
duration: Kirigami.Units.veryShortDuration
easing.type: Easing.InOutQuad
}
NumberAnimation {
......@@ -186,7 +186,7 @@ Flickable {
property: "contentY"
from: flick.contentY
to: zoomAnim.y
duration: Kirigami.Units.longDuration
duration: Kirigami.Units.veryShortDuration
easing.type: Easing.InOutQuad
}
NumberAnimation {
......@@ -194,7 +194,7 @@ Flickable {
property: "contentX"
from: flick.contentX
to: zoomAnim.x
duration: Kirigami.Units.longDuration
duration: Kirigami.Units.veryShortDuration
easing.type: Easing.InOutQuad
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment