From 2e2f4ddd5166f4ddc77c688040cc697f84dbfcf1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Sun, 3 Aug 2014 10:21:45 +0200 Subject: [PATCH 1/1] =?utf8?q?bugfix.=20m=C3=A9nage.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/photo_film_viewer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/skins/photo_film_viewer.js b/skins/photo_film_viewer.js index f1f650d..b86e94d 100644 --- a/skins/photo_film_viewer.js +++ b/skins/photo_film_viewer.js @@ -750,12 +750,11 @@ FilmSlider.prototype.startThumbnailsLoadQueue = function(evt) { } if (leftSize > rightSize) { for (i = this.center - rightSize - 1 ; i >= 0 ; i--) { - console.log(i); this.thumbnailsLoadingOrder.push(thumbnails[i]); } } else if (leftSize < rightSize) { - for (i = this.center + leftSize ; i < thumbnails.length ; i++) { + for (i = this.center + leftSize + 1 ; i < thumbnails.length ; i++) { this.thumbnailsLoadingOrder.push(thumbnails[i]); } } -- 2.20.1