From 6aedf4c2071b9a681117cd0748487740ab240d46 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Thu, 6 Sep 2018 20:24:31 -0700 Subject: [PATCH] Undo all the randomize stuff; it isn't needed Signed-off-by: James Ketrenos --- frontend/src/ketr-photos/ketr-photos.html | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/frontend/src/ketr-photos/ketr-photos.html b/frontend/src/ketr-photos/ketr-photos.html index f6f32d5..52af49c 100755 --- a/frontend/src/ketr-photos/ketr-photos.html +++ b/frontend/src/ketr-photos/ketr-photos.html @@ -392,16 +392,6 @@ this.thumbnails[index].visible = false; }.bind(this)); - /* 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--) { - if (Math.random() > 0.5) { - var tmp = visible[i]; - visible[i] = visible[j]; - visible[j] = tmp; - } - } - /* Turn on visibility for any item that is now visible */ visible.forEach(function(index) { if (this.thumbnails[index].visible != true) {