@@ -388,7 +388,6 @@ ScopeView {
390 if (open) {
390 if (open) {
391− print("switching to new index", currentIndex)
392 categoryDelegate.highlightIndex = currentIndex
391 categoryDelegate.highlightIndex = currentIndex
@@ -404,13 +403,13 @@ ScopeView {
404 effectAdjust += newContentY;
403 effectAdjust += newContentY;
405 newContentY = 0;
404 newContentY = 0;
407− if (newContentY > categoryView.contentHeight - categoryView.height) {
406+ if (newContentY > Math.max(0, categoryView.contentHeight - categoryView.height)) {
408 effectAdjust += -(categoryView.contentHeight - categoryView.height) + newContentY
407 effectAdjust += -(categoryView.contentHeight - categoryView.height) + newContentY
409 newContentY = categoryView.contentHeight - categoryView.height;
408 newContentY = categoryView.contentHeight - categoryView.height;
412 effect.positionPx = effectAdjust;
411 effect.positionPx = effectAdjust;
413− categoryView.contentY = newContentY;
412+ categoryView.contentY = newContentY - categoryView.originY;
416 property bool open: false
415 property bool open: false
@@ -420,6 +419,7 @@ ScopeView {
420 if (open) {
419 if (open) {
421 onScreen = true;
420 onScreen = true;
422 categoryDelegate.highlightIndex = currentIndex;
421 categoryDelegate.highlightIndex = currentIndex;
422+ pageHeader.unfocus();
424 // Cancel any pending preview requests or actions
424 // Cancel any pending preview requests or actions
425 if (previewListView.currentItem.previewData !== undefined) {
425 if (previewListView.currentItem.previewData !== undefined) {