@@ -75,23 +75,20 @@ Item {
7575 Connections {
7676 target: modelData
7777 onSurfaceChanged: {
78− if (surface) item.animateIn(swipeFromBottom);
78+ if (modelData.surface) {
79+ item.animateIn();
80+ }
7981 }
8082 onRemoved: {
8183 item.removing = true;
8284 item.animateOut();
8385 }
8486 }
85−
86− Component {
87− id: swipeFromBottom
88− SwipeFromBottomAnimation {}
89− }
9087 }
9188 }
9289
93− function animateIn(animationComponent) {
94− var animation = animationComponent.createObject(root,
90+ function animateIn() {
91+ var animation = swipeFromBottom.createObject(root,
9592 {
9693 "sessionContainer": root,
9794 "surfaceContainer": surfaceContainer
@@ -112,6 +109,11 @@ Item {
112109 }
113110 }
114111
112+ Component {
113+ id: swipeFromBottom
114+ SwipeFromBottomAnimation {}
115+ }
116+
115117 QtObject {
116118 id: d
117119 property var animations: []