From 556f3e256fcd265e21e105d8ed9a0c34ce4f0d24 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Thu, 6 Sep 2018 20:22:30 -0700 Subject: [PATCH] Fix randomize loading Signed-off-by: James Ketrenos --- frontend/src/ketr-photos/ketr-photos.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/ketr-photos/ketr-photos.html b/frontend/src/ketr-photos/ketr-photos.html index 6b0634e..f6f32d5 100755 --- a/frontend/src/ketr-photos/ketr-photos.html +++ b/frontend/src/ketr-photos/ketr-photos.html @@ -394,7 +394,7 @@ /* Randomly index the visible array, keeping the center * in the middle. This makes the loading look more organic. */ - for (var i = 0, j = visible.length - 1; i != j; i++, j--) { + for (var i = 0, j = visible.length - 1; i < j; i++, j--) { if (Math.random() > 0.5) { var tmp = visible[i]; visible[i] = visible[j];