Compare commits

...

1 Commits

Author SHA1 Message Date
388e73157e test 2022-02-02 13:35:07 -08:00

View File

@ -702,12 +702,15 @@ export default {
focusedIndex = matchIndex > -1 ? matchIndex : this.imageHistory.length - 1;
}
if (!(this.isPaused || thumbnailClick)
|| focusedIndex === this.imageHistory.length - 1) {
const isLastImageFocused = focusedIndex === this.imageHistory.length - 1;
if (!(this.isPaused || thumbnailClick) && isLastImageFocused) {
delete this.previousFocusedImage;
}
}
console.log('old index', this.focusedImageIndex);
console.log('new index', focusedIndex);
this.focusedImageIndex = focusedIndex;
//TODO: do we even need this anymore?
@ -715,6 +718,9 @@ export default {
this.nextImageIndex = focusedIndex;
//this could happen if bounds changes
if (this.focusedImageIndex > this.imageHistory.length - 1) {
console.log('why this?');
console.log('old index', this.focusedImageIndex);
console.log('new index', focusedIndex);
this.focusedImageIndex = focusedIndex;
}