We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d7d93 commit e68ce34Copy full SHA for e68ce34
invokeai/frontend/web/src/features/gallery/components/ImageGrid/GalleryImage.tsx
@@ -118,7 +118,10 @@ const buildOnClick =
118
const start = Math.min(lastClickedIndex, currentClickedIndex);
119
const end = Math.max(lastClickedIndex, currentClickedIndex);
120
const imagesToSelect = imageNames.slice(start, end + 1);
121
- dispatch(selectionChanged(uniq(selection.concat(imagesToSelect))));
+ if(currentClickedIndex < lastClickedIndex) {
122
+ imagesToSelect.reverse();
123
+ }
124
+ dispatch(selectionChanged(imagesToSelect));
125
}
126
} else if (ctrlKey || metaKey) {
127
if (selection.some((n) => n === imageName) && selection.length > 1) {
0 commit comments