@@ -139,6 +139,17 @@ AbstractButton {
139139 }
140140 }
141141 onGoBackToParentClicked: {
142+ if (navigationListView.currentIndex == 0) {
143+ // This can happen if we jumped to a leaf and deep tree and the user
144+ // is now going back, create space in the list for the list to move "left"
145+ var aux = navigationListView.highlightMoveDuration;
146+ navigationListView.highlightMoveDuration = 0;
147+ navigationModel.insert(0, {"navigationId": navigation.parentNavigationId, "nullifyNavigation": false});
148+ navigationListView.currentIndex = navigationListView.currentIndex + 1;
149+ navigationListView.contentX = width * navigationListView.currentIndex;
150+ navigationListView.highlightMoveDuration = aux;
151+ }
152+
142153 scope.setNavigationState(navigation.parentNavigationId, isAltNavigation);
143154 isGoingBack = true;
144155 navigationModel.setProperty(navigationListView.currentIndex - 1, "nullifyNavigation", false);
@@ -153,6 +164,9 @@ AbstractButton {
153164 }
154165 }
155166 onContentXChanged: {
167+ if (navigationListView.highlightMoveDuration == 0)
168+ return;
169+
156170 if (contentX == width * navigationListView.currentIndex) {
157171 if (isGoingBack) {
158172 navigationModel.remove(navigationListView.currentIndex + 1);