on xenial help sign in
Fix the lurching right-edge transition

Due to two transitions trying to play at once, we delayed the transition to the "right edge" mode where the Spread is locked to your finger. This made it feel like Unity "lurched" when you started pulling from the right edge. See https://github.com/ubports/ubuntu-touch/issues/1121

commit1829fbfe776c3a37ae6f9bf91ebb9f4bdd9cd5cd authorDalton Durst <dalton@ubports.com> dateSat 3 Aug 2019, 16:30 (7 years ago) parent4d89751
1 file changed+5−1
qml/Stage/Stage.qml+5−1
qml/Stage/Stage.qml+5−1
@@ -1542,17 +1542,21 @@ FocusScope {
15421542 }
15431543 ]
15441544 transitions: [
1545+
1546+ // These two animate applications into position from Staged to Desktop and back
15451547 Transition {
15461548 from: "staged,stagedWithSideStage"
1549+ to: "normal,restored,maximized,maximizedHorizontally,maximizedVertically,maximizedLeft,maximizedRight,maximizedTopLeft,maximizedBottomLeft,maximizedTopRight,maximizedBottomRight"
15471550 enabled: appDelegate.animationsEnabled
15481551 PropertyAction { target: appDelegate; properties: "visuallyMinimized,visuallyMaximized" }
15491552 UbuntuNumberAnimation { target: appDelegate; properties: "x,y,requestedX,requestedY,opacity,requestedWidth,requestedHeight,scale"; duration: priv.animationDuration }
15501553 },
15511554 Transition {
1552− from: "normal,restored,maximized,maximizedHorizontally,maximizedVertically,maximizedLeft,maximizedRight,maximizedTopLeft,maximizedBottomLeft,maximizedTopRight,maximizedBottomRight";
1555+ from: "normal,restored,maximized,maximizedHorizontally,maximizedVertically,maximizedLeft,maximizedRight,maximizedTopLeft,maximizedBottomLeft,maximizedTopRight,maximizedBottomRight"
15531556 to: "staged,stagedWithSideStage"
15541557 UbuntuNumberAnimation { target: appDelegate; properties: "x,y,requestedX,requestedY,requestedWidth,requestedHeight"; duration: priv.animationDuration}
15551558 },
1559+
15561560 Transition {
15571561 to: "spread"
15581562 // DecoratedWindow wants the scaleToPreviewSize set before enabling scaleToPreview