From 7f60c60ebb42639282d943dfeba2ec6de55bea3c Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 12 Sep 2022 09:38:52 -0700 Subject: [PATCH] Reload only if already loaded --- src/components/Timeline.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Timeline.vue b/src/components/Timeline.vue index 8c2fcd1b..2852c029 100644 --- a/src/components/Timeline.vue +++ b/src/components/Timeline.vue @@ -364,9 +364,12 @@ export default { delete row.pct; } + // Force reload all loaded images if ((i < this.currentStart || i > this.currentEnd) && row.photos) { for (const photo of row.photos) { - photo.flag = (photo.flag & ~constants.FLAG_LOADED) | constants.FLAG_FORCE_RELOAD; + if (photo.flag & constants.FLAG_LOADED) { + photo.flag = (photo.flag & ~constants.FLAG_LOADED) | constants.FLAG_FORCE_RELOAD; + } } } }