@@ -103,7 +103,13 @@ PreviewWidget {
103 onCurrentIndexChanged: {
103 onCurrentIndexChanged: {
104 // if the index changed while overlay is visible, it was from user interaction,
104 // if the index changed while overlay is visible, it was from user interaction,
105 // let's update the index of the original listview
105 // let's update the index of the original listview
106+ if (overlay.visible) {
107+ previewImageListView.highlightMoveDuration = 0;
108+ previewImageListView.highlightResizeDuration = 0;
106− if (overlay.visible) previewImageListView.currentIndex = currentIndex;
109+ previewImageListView.currentIndex = currentIndex;
110+ previewImageListView.highlightMoveDuration = -1;
111+ previewImageListView.highlightResizeDuration = -1;
109 delegate: Image {
115 delegate: Image {