@@ -31,7 +31,7 @@ Rectangle {
3131 property bool interactive
3232 property bool spreadEnabled: true // If false, animations and right edge will be disabled
3333 property real inverseProgress: 0 // This is the progress for left edge drags, in pixels.
34− property int orientation
34+ property int orientation: Qt.PortraitOrientation
3535
3636 color: "black"
3737
@@ -369,6 +369,13 @@ Rectangle {
369369 progress: appDelegate.progress - spreadView.positionMarker1
370370 }
371371
372+ Binding {
373+ target: appDelegate
374+ property: "orientation"
375+ when: appDelegate.interactive
376+ value: root.orientation
377+ }
378+
372379 onClicked: {
373380 if (spreadView.phase == 2) {
374381 if (ApplicationManager.focusedApplicationId == ApplicationManager.get(index).appId) {
@@ -391,14 +398,6 @@ Rectangle {
391398 spreadView.closingIndex = index;
392399 ApplicationManager.stopApplication(ApplicationManager.get(index).appId);
393400 }
394−
395− onInteractiveChanged: {
396− if (interactive) {
397− appDelegate.orientation = Qt.binding( function() { return root.orientation; } );
398− } else {
399− appDelegate.orientation = root.orientation; // breaks the binding intentionally
400− }
401− }
402401 }
403402 }
404403 }