@@ -47,13 +47,14 @@ Showable {
49 prepareToHide: function () {
49 prepareToHide: function () {
50+ hideTranslation.from = root.x + translation.x
50 hideTranslation.to = root.x > 0 || d.forceRightOnNextHideAnimation ? root.width : -root.width;
51 hideTranslation.to = root.x > 0 || d.forceRightOnNextHideAnimation ? root.width : -root.width;
51 d.forceRightOnNextHideAnimation = false;
52 d.forceRightOnNextHideAnimation = false;
54 // We don't directly bind "x" because that's owned by the DragHandle. So
55 // We don't directly bind "x" because that's owned by the DragHandle. So
55 // instead, we can get a little extra horizontal push by using transforms.
56 // instead, we can get a little extra horizontal push by using transforms.
56− transform: Translate { x: root.draggable ? launcherOffset : 0 }
57+ transform: Translate { id: translation; x: root.draggable ? launcherOffset : 0 }
58 Rectangle {
59 Rectangle {
59 // In case background fails to load
60 // In case background fails to load