Undo all the randomize stuff; it isn't needed
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
556f3e256f
commit
6aedf4c207
@ -392,16 +392,6 @@
|
|||||||
this.thumbnails[index].visible = false;
|
this.thumbnails[index].visible = false;
|
||||||
}.bind(this));
|
}.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 */
|
/* Turn on visibility for any item that is now visible */
|
||||||
visible.forEach(function(index) {
|
visible.forEach(function(index) {
|
||||||
if (this.thumbnails[index].visible != true) {
|
if (this.thumbnails[index].visible != true) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user