Slow down the reveal effect a little on background changes
This commit is contained in:
1 parent
be052339d8
commit
7f95505dec
2 files changed
+6
-1
No files matched your search
@@ -274,7 +274,7 @@ Item {
|
|||||||
property: "revealProgress"
|
property: "revealProgress"
|
||||||
from: 0
|
from: 0
|
||||||
to: 1
|
to: 1
|
||||||
duration: Style.duration(420)
|
duration: Style.duration(840)
|
||||||
easing.type: Easing.OutCubic
|
easing.type: Easing.OutCubic
|
||||||
onFinished: {
|
onFinished: {
|
||||||
if (root.incomingBackground) {
|
if (root.incomingBackground) {
|
||||||
|
|||||||
@@ -74,4 +74,9 @@ assert(
|
|||||||
/function prepareBackground[\s\S]*?requestNativeSize\(path\)/.test(backgroundQml),
|
/function prepareBackground[\s\S]*?requestNativeSize\(path\)/.test(backgroundQml),
|
||||||
'background never probes videos and probes a prepared frame ahead of its transition'
|
'background never probes videos and probes a prepared frame ahead of its transition'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
assert(
|
||||||
|
/id: revealAnimation[\s\S]*?duration: Style\.duration\(840\)/.test(backgroundQml),
|
||||||
|
'background reveal takes 840ms'
|
||||||
|
)
|
||||||
JS
|
JS
|
||||||
Reference in new issue
Block a user