@@ -41,10 +41,10 @@ PreviewWidget {
4141 implicitHeight: childrenRect.height
4242
4343 onIsCurrentPreviewChanged: ratingsList.updateRanges();
44− onParentListChanged: ratingsList.updateRanges();
44+ onParentFlickableChanged: ratingsList.updateRanges();
4545
4646 Connections {
47− target: parentList
47+ target: parentFlickable
4848 onOriginYChanged: ratingsList.updateRanges();
4949 onContentYChanged: ratingsList.updateRanges();
5050 onHeightChanged: ratingsList.updateRanges();
@@ -78,19 +78,19 @@ PreviewWidget {
7878
7979 function updateRanges() {
8080 var baseItem = root.parent;
81− if (!parentList || !baseItem) {
81+ if (!parentFlickable || !baseItem) {
8282 ratingsList.displayMarginBeginning = 0;
8383 ratingsList.displayMarginEnd = 0;
8484 return;
8585 }
8686
87− if (parentList.moving) {
87+ if (parentFlickable.moving) {
8888 // Do not update the range if we are overshooting up or down, since we'll come back
8989 // to the stable position and delete/create items without any reason
90− if (parentList.contentY < parentList.originY) {
90+ if (parentFlickable.contentY < parentFlickable.originY) {
9191 return;
92− } else if (parentList.contentHeight - parentList.originY > parentList.height &&
93− parentList.contentY + parentList.height > parentList.contentHeight) {
92+ } else if (parentFlickable.contentHeight - parentFlickable.originY > parentFlickable.height &&
93+ parentFlickable.contentY + parentFlickable.height > parentFlickable.contentHeight) {
9494 return;
9595 }
9696 }
@@ -106,8 +106,8 @@ PreviewWidget {
106106 // Ideally we would also use displayMarginBeginning
107107 // so that delegates at the beginning get destroyed but that causes issues with
108108 // listview and is not really necessary to provide the better experience we're after
109− var itemYOnViewPort = baseItem.y - parentList.contentY;
110− var displayMarginEnd = -ratingsList.contentHeight + parentList.height - itemYOnViewPort;
109+ var itemYOnViewPort = baseItem.y - parentFlickable.contentY;
110+ var displayMarginEnd = -ratingsList.contentHeight + parentFlickable.height - itemYOnViewPort;
111111 displayMarginEnd = -Math.max(-displayMarginEnd, 0);
112112 displayMarginEnd = -Math.min(-displayMarginEnd, ratingsList.contentHeight);
113113 displayMarginEnd = Math.round(displayMarginEnd);